fix(stage-tamagotchi): typecheck

This commit is contained in:
Makito
2025-08-25 22:45:43 +09:00
parent af61a84777
commit 1eed214c30
@@ -54,7 +54,8 @@ onMounted(async () => {
console.error('Failed to validate provider config', providerConfig)
}
try {
const res = await fetch(`${providerConfig.baseUrl.endsWith('/') ? providerConfig.baseUrl.slice(0, -1) : providerConfig.baseUrl}/health`, {
const baseUrl = (providerConfig.baseUrl as string | undefined) ?? ''
const res = await fetch(`${baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl}/health`, {
method: 'GET',
headers: {
'player2-game-key': 'airi',