Skip to content

Commit 1574742

Browse files
refactor(actions/forms): Rename variable
1 parent f81aa79 commit 1574742

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib/actions/form.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export function resetForm(full = false) {
4040
return function (dispatch, getState) {
4141
const state = getState()
4242
const { transitModes } = state.otp.config.modes
43-
const defaultLocalQueryParams = state.user.localUser.defaults
44-
if (defaultLocalQueryParams) {
45-
dispatch(settingQueryParam(defaultLocalQueryParams))
43+
const { defaults: localUserDefaults } = state.user.localUser
44+
if (localUserDefaults) {
45+
dispatch(settingQueryParam(localUserDefaults))
4646
} else {
4747
// Get user overrides and apply to default query
4848
const userOverrides = coreUtils.storage.getItem('defaultQuery', {})

0 commit comments

Comments
 (0)