diff --git a/frontend/application/components/Hero.tsx b/frontend/application/components/Hero.tsx index 0d8f087e..1d1b4208 100644 --- a/frontend/application/components/Hero.tsx +++ b/frontend/application/components/Hero.tsx @@ -40,7 +40,7 @@ import { Banner } from "../lib/types"; export default function Hero({ banners = [] }: { banners?: Banner[] }) { const router = useRouter(); - const getText = useSettingsStore(state => state.getText); + const { getText, isInitialized } = useSettingsStore(); const title = getText('hero_title', '') || (banners.length > 0 && banners[0].title ? banners[0].title : "تخصص آلمانی در خدمت\nسلامت پتهای خانگی"); const subtitle = getText('hero_desc', '') || (banners.length > 0 && banners[0].subtitle ? banners[0].subtitle : 'بیش از ۴۰ سال تجربه نوآورانه در تولید مکملهای درمانی با بالاترین استاندارد کیفی «گرید دارویی اختصاصی». راهکار هوشمند برای هر نیاز بالینی.'); const titleParts = title.split('\n'); @@ -63,7 +63,9 @@ export default function Hero({ banners = [] }: { banners?: Banner[] }) { >