Change le localstorage pour éviter les crash suite à la mise à jouré

pull/2283/head
Johan Girod 2022-09-15 15:22:18 +02:00
parent 1ca2c95273
commit 5bf86470dc
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ describe('Persistence (simulateur salarié)', function () {
cy.get('body').should(() => {
expect(
window.localStorage.getItem(
'mon-entreprise::persisted-simulation::v5::/simulateurs/salaire-brut-net'
'mon-entreprise::persisted-simulation::v6::/simulateurs/salaire-brut-net'
)
).to.be.not.null
})

View File

@ -6,7 +6,7 @@ import { debounce } from '../utils'
import * as safeLocalStorage from './safeLocalStorage'
import { deserialize, serialize } from './serializeSimulation'
const VERSION = 5
const VERSION = 6
const localStorageKey = (pathname: string) =>
`mon-entreprise::persisted-simulation::v${VERSION}::${pathname}`