File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import message_manager, { MessageLevel } from '@/libs/message-manager'
22import notifications from '@/store/notifications'
33import { GenericError , getErrorMessage , Service } from '@/types/common'
44import { LiveNotification , NotificationLevel } from '@/types/notifications'
5- import { backend_offline_error } from '@/utils/api'
5+ import { isBackendOffline } from '@/utils/api'
66
77class Notifier {
88 constructor (
@@ -39,7 +39,7 @@ class Notifier {
3939 }
4040
4141 pushBackError ( type : string , error : GenericError , alert = false ) : void {
42- if ( error === backend_offline_error ) { return }
42+ if ( isBackendOffline ( error ) ) { return }
4343 const message = getErrorMessage ( error )
4444 this . pushError ( type , message , alert )
4545 }
You can’t perform that action at this time.
0 commit comments