made wallet to reload on coupon redeem

This commit was merged in pull request #399.
This commit is contained in:
victorAnumudu
2023-08-29 09:47:35 +01:00
parent 10967acf9e
commit a970411719
8 changed files with 37 additions and 55 deletions
+6 -3
View File
@@ -1,18 +1,21 @@
import { createSlice } from "@reduxjs/toolkit";
const initialState = {
walletDetails: {},
walletDetails: {
loading: true,
data: []
},
};
export const walletSlice = createSlice({
name: "walletDetails",
initialState,
reducers: {
viewWalletDetails: (state, action) => {
updateWalletDetails: (state, action) => {
state.walletDetails = { ...action.payload };
},
},
});
export const { viewWalletDetails } = walletSlice.actions;
export const { updateWalletDetails } = walletSlice.actions;
export default walletSlice.reducer;