Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 8, 2025
1 parent 3d697ea commit 9391a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/loot-core/src/client/app/appSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export const updateApp = createAppAsyncThunk(
},
);

type SetAppStateAction = PayloadAction<Partial<AppState>>;
type SetAppStatePayload = Partial<AppState>;

const appSlice = createSlice({
name: 'app',
initialState,
reducers: {
setAppState(state, action: SetAppStateAction) {
setAppState(state, action: PayloadAction<SetAppStatePayload>) {
return {
...state,
...action.payload,
Expand Down

0 comments on commit 9391a6e

Please sign in to comment.