Skip to content

Commit 064cb17

Browse files
authored
Merge pull request #191 from weijietan-fc/main
fix: remove notification hook use
2 parents f393efe + 6ca9157 commit 064cb17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/services/axios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ axios.interceptors.response.use(
2525
(error) => {
2626
const notifications = useNotificationsStore.getState();
2727
if (!isAxiosError(error)) {
28-
addNotification({
28+
notifications.addNotification({
2929
message: i18n.t({
3030
en: 'Unknown Error',
3131
fr: 'Erreur inconnue'
@@ -35,7 +35,7 @@ axios.interceptors.response.use(
3535
console.error(error);
3636
return Promise.reject(error as Error);
3737
}
38-
addNotification({
38+
notifications.addNotification({
3939
message: i18n.t({
4040
en: 'HTTP Request Failed',
4141
fr: 'Échec de la requête HTTP'

0 commit comments

Comments
 (0)