Change notification type name
This commit is contained in:
parent
ae37d95bfe
commit
31b2110307
|
@ -31,7 +31,7 @@ const NOTIFICATION_IDS = {
|
||||||
TX_CONFIRMATION_EXECUTED_MSG: 'TX_CONFIRMATION_EXECUTED_MSG',
|
TX_CONFIRMATION_EXECUTED_MSG: 'TX_CONFIRMATION_EXECUTED_MSG',
|
||||||
TX_CONFIRMATION_FAILED_MSG: 'TX_CONFIRMATION_FAILED_MSG',
|
TX_CONFIRMATION_FAILED_MSG: 'TX_CONFIRMATION_FAILED_MSG',
|
||||||
TX_FETCH_SIGNATURES_ERROR_MSG: 'TX_FETCH_SIGNATURES_ERROR_MSG',
|
TX_FETCH_SIGNATURES_ERROR_MSG: 'TX_FETCH_SIGNATURES_ERROR_MSG',
|
||||||
SAFE_APPS_FETCH_MSG: 'SAFE_APPS_FETCH_MSG',
|
SAFE_APPS_FETCH_ERROR_MSG: 'SAFE_APPS_FETCH_ERROR_MSG',
|
||||||
SAFE_NAME_CHANGED_MSG: 'SAFE_NAME_CHANGED_MSG',
|
SAFE_NAME_CHANGED_MSG: 'SAFE_NAME_CHANGED_MSG',
|
||||||
OWNER_NAME_CHANGE_EXECUTED_MSG: 'OWNER_NAME_CHANGE_EXECUTED_MSG',
|
OWNER_NAME_CHANGE_EXECUTED_MSG: 'OWNER_NAME_CHANGE_EXECUTED_MSG',
|
||||||
SIGN_SETTINGS_CHANGE_MSG: 'SIGN_SETTINGS_CHANGE_MSG',
|
SIGN_SETTINGS_CHANGE_MSG: 'SIGN_SETTINGS_CHANGE_MSG',
|
||||||
|
@ -112,7 +112,7 @@ export const NOTIFICATIONS: Record<NotificationId, Notification> = {
|
||||||
message: 'Couldn’t fetch all signatures for this transaction. Please reload page and try again',
|
message: 'Couldn’t fetch all signatures for this transaction. Please reload page and try again',
|
||||||
options: { variant: ERROR, persist: true },
|
options: { variant: ERROR, persist: true },
|
||||||
},
|
},
|
||||||
SAFE_APPS_FETCH_MSG: {
|
SAFE_APPS_FETCH_ERROR_MSG: {
|
||||||
message: 'Error fetching the Safe Apps, please refresh the page',
|
message: 'Error fetching the Safe Apps, please refresh the page',
|
||||||
options: { variant: ERROR, persist: false, autoHideDuration: shortDuration },
|
options: { variant: ERROR, persist: false, autoHideDuration: shortDuration },
|
||||||
},
|
},
|
||||||
|
|
|
@ -29,7 +29,7 @@ const useAppList = (showError: boolean): UseAppListReturnType => {
|
||||||
result = await getAppsList()
|
result = await getAppsList()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (showError) {
|
if (showError) {
|
||||||
dispatch(enqueueSnackbar(NOTIFICATIONS.SAFE_APPS_FETCH_MSG))
|
dispatch(enqueueSnackbar(NOTIFICATIONS.SAFE_APPS_FETCH_ERROR_MSG))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setStaticAppsList(result && result?.length ? result : staticAppsList)
|
setStaticAppsList(result && result?.length ? result : staticAppsList)
|
||||||
|
|
Loading…
Reference in New Issue