We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f38971 commit e313264Copy full SHA for e313264
src/app/[locale]/(main)/(container)/cart/hooks/useCheckoutItems.tsx
@@ -107,7 +107,10 @@ const useCheckoutItems = ({ content }: { content: CartContentFragment }) => {
107
/>
108
),
109
},
110
- {
+ ];
111
+
112
+ if (totalProfit > 0) {
113
+ items.push({
114
key: (
115
<Typography color="error" variant="body2" sx={{ fontWeight: 600 }}>
116
{t('pages.cart.box.yourProfit')}
@@ -122,8 +125,8 @@ const useCheckoutItems = ({ content }: { content: CartContentFragment }) => {
122
125
}}
123
126
124
127
- },
- ];
128
+ });
129
+ }
130
131
return items;
132
};
0 commit comments