Skip to content

Commit

Permalink
rename clearSyncSetupError to clearSyncSetupError
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Jan 3, 2019
1 parent 8f8290a commit 256aa59
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/brave_sync/ui/actions/sync_actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

/**
Expand Down
2 changes: 1 addition & 1 deletion components/brave_sync/ui/components/enabledContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default class SyncEnabledContent extends React.PureComponent<Props, State
}

onUserNoticedError = () => {
this.props.actions.resetSyncSetupError()
this.props.actions.clearSyncSetupError()
}

onClickCancelChildModals = () => {
Expand Down
2 changes: 1 addition & 1 deletion components/brave_sync/ui/components/modals/deviceType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class DeviceTypeModal extends React.PureComponent<Props, State> {
}

onUserNoticedError = () => {
this.props.actions.resetSyncSetupError()
this.props.actions.clearSyncSetupError()
this.props.onClose()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class EnterSyncCodeModal extends React.PureComponent<Props, State
}

onUserNoticedError = () => {
this.props.actions.resetSyncSetupError()
this.props.actions.clearSyncSetupError()
}

onEnterPassphrase = (event: React.ChangeEvent<HTMLTextAreaElement>) => {
Expand Down
2 changes: 1 addition & 1 deletion components/brave_sync/ui/constants/sync_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
2 changes: 1 addition & 1 deletion components/brave_sync/ui/reducers/sync_reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const syncReducer: Reducer<Sync.State | undefined> = (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

Expand Down

0 comments on commit 256aa59

Please sign in to comment.