handle possible error case
gitea/hedera-web/pipeline/pr-beta This commit looks good Details

This commit is contained in:
taro 2025-02-19 02:17:09 -03:00
parent bf449548c9
commit 93c481aadf
1 changed files with 5 additions and 0 deletions

View File

@ -250,6 +250,11 @@ export const useUserStore = defineStore('user', () => {
try {
const userData = await api.get('VnUsers/getCurrentUserData');
if (!userData?.data) {
console.error('GET VnUsers/getCurrentUserData returned invalid data', userData);
return;
}
if (userType === 'user') mainUser.value = userData.data;
else supplantedUser.value = userData.data;
} catch (error) {