refs #6930 perf: replace label

This commit is contained in:
Javier Segarra 2024-03-15 12:43:56 +01:00
parent 445d95057a
commit 0d3d002baf
1 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ export function useSession() {
headers: { Authorization: localStorage.getItem('tokenMultimedia') },
});
} catch (error) {
notify('errors.userConfig', 'negative');
notify('errors.statusUnauthorized', 'negative');
} finally {
localStorage.removeItem('tokenMultimedia');
}
@ -48,7 +48,7 @@ export function useSession() {
headers: { Authorization: localStorage.getItem('token') },
});
} catch (error) {
notify('errors.userConfig', 'negative');
notify('errors.statusUnauthorized', 'negative');
} finally {
localStorage.removeItem('token');
}
@ -60,7 +60,7 @@ export function useSession() {
headers: { Authorization: sessionStorage.getItem('tokenMultimedia') },
});
} catch (error) {
notify('errors.userConfig', 'negative');
notify('errors.statusUnauthorized', 'negative');
} finally {
sessionStorage.removeItem('tokenMultimedia');
}
@ -71,7 +71,7 @@ export function useSession() {
headers: { Authorization: sessionStorage.getItem('token') },
});
} catch (error) {
notify('errors.userConfig', 'negative');
notify('errors.statusUnauthorized', 'negative');
} finally {
sessionStorage.removeItem('token');
}