diff --git a/src/pages/details/index.tsx b/src/pages/details/index.tsx index 18f9b6b..7450fb3 100644 --- a/src/pages/details/index.tsx +++ b/src/pages/details/index.tsx @@ -343,7 +343,7 @@ const Details = (props: Params) => { {item.name} {formatPriceDiv(item.bulk_price)}/Kg{ - (currentDialogDetail.current!.last_bulk_price && currentDialogDetail.current!.bulk_price !== currentDialogDetail.current!.last_bulk_price) ? (item.bulk_price > item.last_bulk_price) ? : : null + (item!.last_bulk_price && item!.bulk_price !== item!.last_bulk_price) ? (item.bulk_price > item.last_bulk_price) ? : : null } )