address comments — remove unnecessary explicit passing of auth token
gitea/hedera-web/pipeline/pr-beta This commit looks good Details

This commit is contained in:
taro 2025-02-19 02:05:42 -03:00
parent 29c42d7f34
commit bf449548c9
1 changed files with 1 additions and 4 deletions

View File

@ -248,10 +248,7 @@ export const useUserStore = defineStore('user', () => {
const fetchUser = async (userType = 'user') => {
try {
const _token = getToken();
const userData = await api.get('VnUsers/getCurrentUserData', {
headers: { Authorization: _token }
});
const userData = await api.get('VnUsers/getCurrentUserData');
if (userType === 'user') mainUser.value = userData.data;
else supplantedUser.value = userData.data;