diff --git a/src/routes/(main)/me/account/+page.svelte b/src/routes/(main)/me/account/+page.svelte index 82aeaa0..44eecfa 100644 --- a/src/routes/(main)/me/account/+page.svelte +++ b/src/routes/(main)/me/account/+page.svelte @@ -9,7 +9,8 @@ export let data: PageData; - const [balance, balanceDecimals] = data?.balance?.toFixed(2).split('.'); + const [balance, balanceDecimals] = + typeof data?.balance === 'number' ? data.balance.toFixed(2).split('.') : ['0', '00'];