forked from verdnatura/hedera-web
address comments — remove unnecessary explicit passing of auth token
This commit is contained in:
parent
29c42d7f34
commit
bf449548c9
|
@ -248,10 +248,7 @@ export const useUserStore = defineStore('user', () => {
|
||||||
|
|
||||||
const fetchUser = async (userType = 'user') => {
|
const fetchUser = async (userType = 'user') => {
|
||||||
try {
|
try {
|
||||||
const _token = getToken();
|
const userData = await api.get('VnUsers/getCurrentUserData');
|
||||||
const userData = await api.get('VnUsers/getCurrentUserData', {
|
|
||||||
headers: { Authorization: _token }
|
|
||||||
});
|
|
||||||
|
|
||||||
if (userType === 'user') mainUser.value = userData.data;
|
if (userType === 'user') mainUser.value = userData.data;
|
||||||
else supplantedUser.value = userData.data;
|
else supplantedUser.value = userData.data;
|
||||||
|
|
Loading…
Reference in New Issue