feat(MED-101): disable timer until TTO products are used
This commit is contained in:
@@ -32,11 +32,12 @@ export default async function CartPage() {
|
|||||||
|
|
||||||
const otherItemsSorted = otherItems.sort((a, b) => (a.updated_at ?? "") > (b.updated_at ?? "") ? -1 : 1);
|
const otherItemsSorted = otherItems.sort((a, b) => (a.updated_at ?? "") > (b.updated_at ?? "") ? -1 : 1);
|
||||||
const item = otherItemsSorted[0];
|
const item = otherItemsSorted[0];
|
||||||
|
const hasItemsWithTimer = false as boolean;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageBody>
|
<PageBody>
|
||||||
<PageHeader title={<Trans i18nKey="cart:title" />}>
|
<PageHeader title={<Trans i18nKey="cart:title" />}>
|
||||||
{item && item.updated_at && <CartTimer cartItem={item} />}
|
{hasItemsWithTimer && item && item.updated_at && <CartTimer cartItem={item} />}
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
<Cart cart={cart} analysisPackages={analysisPackages} otherItems={otherItems} />
|
<Cart cart={cart} analysisPackages={analysisPackages} otherItems={otherItems} />
|
||||||
</PageBody>
|
</PageBody>
|
||||||
|
|||||||
Reference in New Issue
Block a user