Skip to content

Commit c3aaa58

Browse files
author
omid2007hope
committed
Just a quick fix following the new update
1 parent 0b8e65f commit c3aaa58

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Redux/Store/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// The "list" slice is handled by the default export from ../reducer/index.jsx
44

55
import { configureStore } from '@reduxjs/toolkit';
6-
import index from '../reducer/index.jsx';
6+
import index from '../Reducer/index.jsx';
77

88
export const store = configureStore({
99
reducer: {

src/Redux/reducer/index.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ const reduxReducer = createSlice({
2323

2424
// Spread the payload into state (works if payload is an array).
2525
state.push(...item);
26-
27-
// Persist basket items to localStorage so they survive page reloads.
28-
localStorage.setItem('BasketItems', JSON.stringify(state));
2926
},
3027

3128
// removeItem: removes an item by id.

0 commit comments

Comments
 (0)