fix: add type to reducer action

This commit is contained in:
RadoslavDimchev 2023-09-22 12:46:09 +03:00
parent 28288dc02c
commit dd944ad1f0
1 changed files with 2 additions and 2 deletions

View File

@ -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
},
},