More fixes

This commit is contained in:
Gnarwhal 2024-09-19 04:08:14 +00:00
parent 56d393fcc8
commit 0b544fc507
Signed by: Gnarwhal
GPG key ID: B9B7561C0C90884D
3 changed files with 4 additions and 3 deletions
src/app/[...file]

View file

@ -89,7 +89,7 @@ export default function Content({ src }: { src: string}) {
json: "json",
}
const split = window.location.pathname.split('.');
set_content(<Text language={split.length == 0 ? 'none' : languages[split[split.length - 1]]} text={data} />);
set_content(<Text language={split.length == 0 ? 'none' : (languages[split[split.length - 1] as keyof typeof languages] ?? 'none')} text={data} />);
}
};
}