Skip to content

Commit

Permalink
Add type to action.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Dec 10, 2024
1 parent b7cacc3 commit 0e2bc04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nr-app/src/redux/slices/settings.slice.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createSlice } from "@reduxjs/toolkit";
import { createSlice, PayloadAction } from "@reduxjs/toolkit";

type SettingsState = {
areTestFeaturesEnabled: boolean;
Expand All @@ -12,7 +12,7 @@ export const settingsSlice = createSlice({
name: "settings",
initialState,
reducers: {
toggleTestFeatures: (state, action) => {
toggleTestFeatures: (state, action: PayloadAction) => {
state.areTestFeaturesEnabled = !state.areTestFeaturesEnabled;
},
},
Expand Down

0 comments on commit 0e2bc04

Please sign in to comment.