feat(MED-101): disable timer until TTO products are used

This commit is contained in:
Karli
2025-08-18 13:21:56 +03:00
parent d65a6e8a4a
commit 43117985dd

View File

@@ -32,11 +32,12 @@ export default async function CartPage() {
const otherItemsSorted = otherItems.sort((a, b) => (a.updated_at ?? "") > (b.updated_at ?? "") ? -1 : 1);
const item = otherItemsSorted[0];
const hasItemsWithTimer = false as boolean;
return (
<PageBody>
<PageHeader title={<Trans i18nKey="cart:title" />}>
{item && item.updated_at && <CartTimer cartItem={item} />}
{hasItemsWithTimer && item && item.updated_at && <CartTimer cartItem={item} />}
</PageHeader>
<Cart cart={cart} analysisPackages={analysisPackages} otherItems={otherItems} />
</PageBody>