fix error display

This commit is contained in:
Hazel K 2024-10-07 11:18:08 -04:00
parent 0da7f9b3f6
commit 12de9fcb18

View File

@ -72,7 +72,7 @@ async function reload(): Promise<void> {
.catch(error => { .catch(error => {
console.error('Error fetching user info', error); console.error('Error fetching user info', error);
return error.value = loadError.value =
typeof(error) === 'string' typeof(error) === 'string'
? String(error) ? String(error)
: JSON.stringify(error); : JSON.stringify(error);