fix(Axios & Layout): add Shop-ID header to Axios instance and navigate to home on shop ID set
This commit is contained in:
@@ -17,6 +17,7 @@ const shopIdSlice = createSlice({
|
||||
reducers: {
|
||||
setShopId: (state, action: PayloadAction<string>) => {
|
||||
state.shop_id = action.payload;
|
||||
sessionStorage.setItem("shop_id", action.payload);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user