Skip to content

Commit

Permalink
fix: Conditionally rendering totalPrice only if it is not undefined (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Jul 2, 2024
2 parents 5d16c84 + 64bcf65 commit ffb3a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/components/settings/Checkout/CheckoutDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function CheckoutDetails({ checkoutData, isCheckoutDataLoading }: Checkou
</Group>
) : null}

{checkoutData.totalPrice ? (
{typeof checkoutData.totalPrice !== 'undefined' ? (
<>
<Divider />
<Group position="apart">
Expand Down

0 comments on commit ffb3a2b

Please sign in to comment.