From 0d3d002baf5265acbb226270ea5ac2d25e76e282 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 15 Mar 2024 12:43:56 +0100 Subject: [PATCH] refs #6930 perf: replace label --- src/composables/useSession.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/composables/useSession.js b/src/composables/useSession.js index 507e63c0f..aa20dde20 100644 --- a/src/composables/useSession.js +++ b/src/composables/useSession.js @@ -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'); }