From 1a329c86052c24d2c6599927c59f2c502ca90992 Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 17 Jan 2026 09:52:22 +0300 Subject: [PATCH] Update PromoOffersSection.tsx --- src/components/PromoOffersSection.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/PromoOffersSection.tsx b/src/components/PromoOffersSection.tsx index 29aa452..d125985 100644 --- a/src/components/PromoOffersSection.tsx +++ b/src/components/PromoOffersSection.tsx @@ -1,7 +1,6 @@ import { useState } from 'react' import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query' -import { useTranslation } from 'react-i18next' -import { promoApi, PromoOffer, ActiveDiscount } from '../api/promo' +import { promoApi, PromoOffer } from '../api/promo' // Icons const GiftIcon = () => ( @@ -83,7 +82,6 @@ interface PromoOffersSectionProps { } export default function PromoOffersSection({ className = '' }: PromoOffersSectionProps) { - const { t } = useTranslation() const queryClient = useQueryClient() const [claimingId, setClaimingId] = useState(null) const [successMessage, setSuccessMessage] = useState(null) @@ -130,7 +128,6 @@ export default function PromoOffersSection({ className = '' }: PromoOffersSectio // Filter unclaimed and active offers const availableOffers = offers.filter(o => o.is_active && !o.is_claimed) - const claimedOffers = offers.filter(o => o.is_claimed) // Don't render if no offers and no active discount if (!offersLoading && availableOffers.length === 0 && (!activeDiscount || !activeDiscount.is_active)) {