Skip to content

Commit

Permalink
fix: 🚑️ hotfix the hotfix nc mall discount price
Browse files Browse the repository at this point in the history
  • Loading branch information
lucca180 committed Jan 21, 2025
1 parent f9e49a1 commit 9b21fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Items/NCMallCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const NcMallCard = (props: Props) => {

const isDiscounted =
ncMallData.active &&
ncMallData.discountPrice &&
!!ncMallData.discountPrice &&
new Date(ncMallData.discountEnd ?? 0) > new Date();
const isBuyable =
ncMallData.active && (!ncMallData.saleEnd || new Date(ncMallData.saleEnd) > new Date());
Expand Down

0 comments on commit 9b21fdd

Please sign in to comment.