diff --git a/components/brave_sync/ui/actions/sync_actions.ts b/components/brave_sync/ui/actions/sync_actions.ts index d74a81a12bef..7ba6f6fa3153 100644 --- a/components/brave_sync/ui/actions/sync_actions.ts +++ b/components/brave_sync/ui/actions/sync_actions.ts @@ -115,8 +115,8 @@ export const onSyncSetupError = (error: Sync.SetupErrorType) => { /** * Reset the Sync Error */ -export const resetSyncSetupError = () => { - return action(types.SYNC_RESET_SETUP_ERROR) +export const clearSyncSetupError = () => { + return action(types.SYNC_CLEAR_SETUP_ERROR) } /** diff --git a/components/brave_sync/ui/components/enabledContent.tsx b/components/brave_sync/ui/components/enabledContent.tsx index 1285e0b2a6ab..117bc43a5c39 100644 --- a/components/brave_sync/ui/components/enabledContent.tsx +++ b/components/brave_sync/ui/components/enabledContent.tsx @@ -149,7 +149,7 @@ export default class SyncEnabledContent extends React.PureComponent { - this.props.actions.resetSyncSetupError() + this.props.actions.clearSyncSetupError() } onClickCancelChildModals = () => { diff --git a/components/brave_sync/ui/components/modals/deviceType.tsx b/components/brave_sync/ui/components/modals/deviceType.tsx index d966dd94c88d..3f77cbb6d090 100644 --- a/components/brave_sync/ui/components/modals/deviceType.tsx +++ b/components/brave_sync/ui/components/modals/deviceType.tsx @@ -58,7 +58,7 @@ export default class DeviceTypeModal extends React.PureComponent { } onUserNoticedError = () => { - this.props.actions.resetSyncSetupError() + this.props.actions.clearSyncSetupError() this.props.onClose() } diff --git a/components/brave_sync/ui/components/modals/enterSyncCode.tsx b/components/brave_sync/ui/components/modals/enterSyncCode.tsx index 4cd06ff88392..cdef1bb14239 100644 --- a/components/brave_sync/ui/components/modals/enterSyncCode.tsx +++ b/components/brave_sync/ui/components/modals/enterSyncCode.tsx @@ -63,7 +63,7 @@ export default class EnterSyncCodeModal extends React.PureComponent { - this.props.actions.resetSyncSetupError() + this.props.actions.clearSyncSetupError() } onEnterPassphrase = (event: React.ChangeEvent) => { diff --git a/components/brave_sync/ui/constants/sync_types.ts b/components/brave_sync/ui/constants/sync_types.ts index ac14364769ad..b08758d0f6cc 100644 --- a/components/brave_sync/ui/constants/sync_types.ts +++ b/components/brave_sync/ui/constants/sync_types.ts @@ -16,6 +16,6 @@ export const enum types { SYNC_BROWSING_HISTORY = '@@sync/SYNC_BROWSING_HISTORY', SYNC_SETUP_SYNC_HAVE_CODE = '@@sync/SYNC_SETUP_SYNC_HAVE_CODE', SYNC_SETUP_ERROR = '@@sync/SYNC_SETUP_ERROR', - SYNC_RESET_SETUP_ERROR = '@@sync/SYNC_RESET_SETUP_ERROR', + SYNC_CLEAR_SETUP_ERROR = '@@sync/SYNC_CLEAR_SETUP_ERROR', SYNC_ON_LOG_MESSAGE = '@@sync/SYNC_ON_LOG_MESSAGE' } diff --git a/components/brave_sync/ui/reducers/sync_reducer.ts b/components/brave_sync/ui/reducers/sync_reducer.ts index 3c8b9de3e740..c87cec88ffe5 100644 --- a/components/brave_sync/ui/reducers/sync_reducer.ts +++ b/components/brave_sync/ui/reducers/sync_reducer.ts @@ -125,7 +125,7 @@ const syncReducer: Reducer = (state: Sync.State | undefi state = { ...state, error: payload.error } break - case types.SYNC_RESET_SETUP_ERROR: + case types.SYNC_CLEAR_SETUP_ERROR: state = { ...state, error: undefined } break