From 4ad4cb17e85cd19419d344f67abeb6118f1a1322 Mon Sep 17 00:00:00 2001 From: taro Date: Thu, 20 Feb 2025 04:57:23 -0300 Subject: [PATCH] refactor: remove unnecessary verification --- src/stores/user.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/stores/user.js b/src/stores/user.js index 992e6e06..7f9d8a54 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -250,11 +250,6 @@ 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) {