fixes
This commit is contained in:
@@ -17,6 +17,7 @@ const initialState = {
|
||||
registerResult: "",
|
||||
loginResult: "",
|
||||
},
|
||||
tempData: {},
|
||||
};
|
||||
|
||||
const data = (state = initialState, action) => {
|
||||
@@ -105,6 +106,10 @@ const data = (state = initialState, action) => {
|
||||
...state,
|
||||
dialogs: { ...state.dialogs, newRestaurant: true },
|
||||
});
|
||||
case "SET_TEMP_DATA":
|
||||
return (state = { ...state, tempData: action.payload });
|
||||
case "CLEAR_TEMP_DATA":
|
||||
return (state = { ...state, tempData: {} });
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user