fix: add type to reducer action
This commit is contained in:
parent
28288dc02c
commit
dd944ad1f0
|
@ -1,4 +1,4 @@
|
|||
import { createSlice } from '@reduxjs/toolkit'
|
||||
import { PayloadAction, createSlice } from '@reduxjs/toolkit'
|
||||
|
||||
type DepositState = {
|
||||
isWalletConnected: boolean
|
||||
|
@ -12,7 +12,7 @@ const depositSlice = createSlice({
|
|||
name: 'deposit',
|
||||
initialState,
|
||||
reducers: {
|
||||
setIsWalletConnected: (state, action) => {
|
||||
setIsWalletConnected: (state, action: PayloadAction<boolean>) => {
|
||||
state.isWalletConnected = action.payload
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue