Skip to content

Commit

Permalink
Fix typo in setup reducers
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed May 17, 2023
1 parent d06c0e3 commit d21b2dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webview/src/setup/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
updateHasData as updateWebviewHasData
} from '../state/webviewSlice'
import {
updateCanGitInitalized,
updateCanGitInitialize,
updateCliCompatible,
updateDvcCliDetails,
updateIsPythonExtensionUsed,
Expand Down Expand Up @@ -47,7 +47,7 @@ export const feedStore = (
for (const key of Object.keys(data.data)) {
switch (key) {
case 'canGitInitialize':
dispatch(updateCanGitInitalized(data.data.canGitInitialize))
dispatch(updateCanGitInitialize(data.data.canGitInitialize))
continue
case 'cliCompatible':
dispatch(updateCliCompatible(data.data.cliCompatible))
Expand Down
4 changes: 2 additions & 2 deletions webview/src/setup/state/dvcSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const dvcSlice = createSlice({
initialState: dvcInitialState,
name: 'dvc',
reducers: {
updateCanGitInitalized: (state, action: PayloadAction<boolean>) => {
updateCanGitInitialize: (state, action: PayloadAction<boolean>) => {
state.canGitInitialize = action.payload
},
updateCliCompatible: (
Expand Down Expand Up @@ -59,7 +59,7 @@ export const dvcSlice = createSlice({
})

export const {
updateCanGitInitalized,
updateCanGitInitialize,
updateCliCompatible,
updateDvcCliDetails,
updateIsPythonExtensionUsed,
Expand Down

0 comments on commit d21b2dd

Please sign in to comment.