'hashtagUrl' is possibly 'undefined'

This commit is contained in:
Sebastian Hädrich 2025-06-26 03:53:49 +02:00 committed by GitHub
parent f9f7018639
commit 418e5617cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,7 +128,7 @@ export const HashtagMenuController: React.FC = () => {
text: intl.formatMessage(messages.muteHashtag, { text: intl.formatMessage(messages.muteHashtag, {
hashtag, hashtag,
}), }),
href: hashtagUrl.toString(), href: hashtagUrl?.toString(),
dangerous: true, dangerous: true,
}, },
], ],