Skip to content

Commit 2357a65

Browse files
committed
save
1 parent 9e7ed98 commit 2357a65

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/Footer/Subscribe/Subscribe.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ export default function Subscribe(props) {
2424

2525

2626
useEffect(() => {
27-
setTitle(t("landing.NewsletterCTA.title"))
28-
setText(t("landing.NewsletterCTA.text"))
27+
if(t("landing.NewsletterCTA.title")) {
28+
setTitle(t("landing.NewsletterCTA.title"))
29+
setText(t("landing.NewsletterCTA.text"))
30+
} else {
31+
setTitle('111')
32+
setText('2222')
33+
}
2934
}, [props.lang])
3035

3136
useEffect(() => {

0 commit comments

Comments
 (0)