From fb42bd255d2f8e92e6327389fd57e54b19c24dab Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Tue, 7 Jan 2025 15:10:14 -0800 Subject: [PATCH] Slice name --- packages/loot-core/src/client/app/appSlice.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/loot-core/src/client/app/appSlice.ts b/packages/loot-core/src/client/app/appSlice.ts index c7dd9d1b069..bf6c58a6071 100644 --- a/packages/loot-core/src/client/app/appSlice.ts +++ b/packages/loot-core/src/client/app/appSlice.ts @@ -6,6 +6,8 @@ import { import { type AppDispatch, type RootState } from '../store'; +const sliceName = 'app'; + const createAppAsyncThunk = createAsyncThunk.withTypes<{ state: RootState; dispatch: AppDispatch; @@ -30,7 +32,7 @@ const initialState: AppState = { }; export const updateApp = createAppAsyncThunk( - 'app/updateApp', + `${sliceName}/updateApp`, async (_, thunkApi) => { await global.Actual.applyAppUpdate(); thunkApi.dispatch(setAppState({ updateInfo: null })); @@ -40,7 +42,7 @@ export const updateApp = createAppAsyncThunk( type SetAppStatePayload = Partial; const appSlice = createSlice({ - name: 'app', + name: sliceName, initialState, reducers: { setAppState(state, action: PayloadAction) {