diff --git a/src/components/ServerCard.tsx b/src/components/ServerCard.tsx index 6e47288..b577ce9 100644 --- a/src/components/ServerCard.tsx +++ b/src/components/ServerCard.tsx @@ -28,7 +28,7 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf const showFlag = true // @ts-expect-error ShowNetTransfer is a global variable - const showNetTransfer = window.ShowNetTransfer === "true" + const showNetTransfer = window.ShowNetTransfer as boolean const parsedData = parsePublicNote(public_note) diff --git a/src/components/ServerOverview.tsx b/src/components/ServerOverview.tsx index 1fd7f8d..81b80b4 100644 --- a/src/components/ServerOverview.tsx +++ b/src/components/ServerOverview.tsx @@ -28,7 +28,7 @@ export default function ServerOverview({ const { status, setStatus } = useStatus() // @ts-expect-error DisableAnimatedMan is a global variable - const disableAnimatedMan = window.DisableAnimatedMan === "true" + const disableAnimatedMan = window.DisableAnimatedMan as boolean // @ts-expect-error CustomIllustration is a global variable const customIllustration = window.CustomIllustration || "/animated-man.webp"