Change notification type name

This commit is contained in:
juampibermani 2021-05-31 10:51:34 -03:00
parent ae37d95bfe
commit 31b2110307
2 changed files with 3 additions and 3 deletions

View File

@ -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: 'Couldnt fetch all signatures for this transaction. Please reload page and try again', message: 'Couldnt 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 },
}, },

View File

@ -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)