Fix types

pull/2362/head
Jérémy Rialland 2022-10-31 15:28:06 +01:00 committed by Jérémy Rialland
parent e8f2aaf078
commit 870cf9cef8
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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'