Refactor NotificationDetailTab component to use strict equality for reminder checks, enhancing clarity in rendering logic for reminder and non-reminder notifications. #48
@@ -362,7 +362,7 @@ const NotificationDetailTab = (props) => {
|
||||
<Row gutter={[8, 8]}>
|
||||
{/* Kolom Kiri: Data Kompresor */}
|
||||
|
||||
{notification.is_reminder && (
|
||||
{notification.is_reminder == true && (
|
||||
<Col xs={24} md={8}>
|
||||
<div>
|
||||
<Card hoverable bodyStyle={{ padding: '12px' }}>
|
||||
@@ -514,8 +514,8 @@ const NotificationDetailTab = (props) => {
|
||||
</div>
|
||||
</Col>
|
||||
)}
|
||||
|
||||
{!notification.is_reminder && (
|
||||
|
||||
{notification.is_reminder == false && (
|
||||
<Col xs={24} lg={8}>
|
||||
<Card
|
||||
size="small"
|
||||
|
||||
Reference in New Issue
Block a user