From 7acb5ebde9214704d5ac107d0506fe1ff175c298 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 20 Sep 2023 20:31:19 -0700 Subject: [PATCH] fix: :bug: don't add TOS URL to info menu if it doesn't exist --- packages/client/src/scripts/helpMenu.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/scripts/helpMenu.ts b/packages/client/src/scripts/helpMenu.ts index 508053d05..16f09674c 100644 --- a/packages/client/src/scripts/helpMenu.ts +++ b/packages/client/src/scripts/helpMenu.ts @@ -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,