Fix types
parent
e8f2aaf078
commit
870cf9cef8
|
@ -44,7 +44,7 @@ export function companySituation(state: Situation = {}, action: Action) {
|
|||
}
|
||||
break
|
||||
case 'DELETE_FROM_SITUATION': {
|
||||
return omit({ ...state }, action.fieldName)
|
||||
return omit({ ...state }, action.fieldName) as Situation
|
||||
}
|
||||
case 'COMPANY::SET_EXISTING_COMPANY':
|
||||
return getCompanySituation(action.entreprise)
|
||||
|
|
|
@ -22,7 +22,7 @@ export function setupCompanySituationPersistence(
|
|||
store.subscribe(debounce(1000, listener))
|
||||
}
|
||||
|
||||
export function retrievePersistedCompanySituation(): Situation | undefined {
|
||||
export function retrievePersistedCompanySituation() {
|
||||
const serializedState = safeLocalStorage.getItem(LOCAL_STORAGE_KEY)
|
||||
|
||||
return serializedState && serializedState !== 'undefined'
|
||||
|
|
Loading…
Reference in New Issue