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", icon: "ph-lightbulb ph-bold ph-lg",
to: "/about-firefish", to: "/about-firefish",
}, },
{ instance.tosUrl ? {
type: "button", type: "button",
text: i18n.ts.tos, text: i18n.ts.tos,
icon: "ph-scroll ph-bold ph-lg", icon: "ph-scroll ph-bold ph-lg",
action: () => { action: () => {
window.open(instance.tosUrl, "_blank"); window.open(instance.tosUrl, "_blank");
}, },
}, } : null,
{ {
type: "button", type: "button",
text: i18n.ts.apps, text: i18n.ts.apps,