fix: 🐛 don't add TOS URL to info menu if it doesn't exist

This commit is contained in:
ThatOneCalculator 2023-09-20 20:31:19 -07:00
parent b7e9ec6341
commit 7acb5ebde9
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -24,14 +24,14 @@ export function openHelpMenu_(ev: MouseEvent) {
icon: "ph-lightbulb ph-bold ph-lg",
to: "/about-firefish",
},
{
instance.tosUrl ? {
type: "button",
text: i18n.ts.tos,
icon: "ph-scroll ph-bold ph-lg",
action: () => {
window.open(instance.tosUrl, "_blank");
},
},
} : null,
{
type: "button",
text: i18n.ts.apps,