fix: wrong document titles

This commit is contained in:
Tom (plebeius.eth)
2024-05-31 17:33:49 +02:00
parent fe48a991cc
commit 19164db606
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -156,7 +156,9 @@ const Catalog = () => {
useEffect(() => {
let documentTitle = title ? title : shortAddress;
document.title = documentTitle + ' - Catalog';
if (isInAllView) documentTitle = t('all');
else if (isInSubscriptionsView) documentTitle = t('subscriptions');
document.title = documentTitle + ` - ${t('catalog')}`;
}, [title, shortAddress]);
return (