Change le localstorage pour éviter les crash suite à la mise à jouré
parent
1ca2c95273
commit
5bf86470dc
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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}`
|
||||
|
|
Loading…
Reference in New Issue