fix(Axios & Layout): add Shop-ID header to Axios instance and navigate to home on shop ID set

This commit is contained in:
josheqani
2025-05-13 08:31:23 +03:30
parent bd4e3feea0
commit 08bde1ff4b
3 changed files with 9 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ const shopIdSlice = createSlice({
reducers: {
setShopId: (state, action: PayloadAction<string>) => {
state.shop_id = action.payload;
sessionStorage.setItem("shop_id", action.payload);
},
},
});