From 5bf86470dc66c00f840fa20b0bf77b9de17a93af Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 15 Sep 2022 15:22:18 +0200 Subject: [PATCH] =?UTF-8?q?Change=20le=20localstorage=20pour=20=C3=A9viter?= =?UTF-8?q?=20les=20crash=20suite=20=C3=A0=20la=20mise=20=C3=A0=20jour?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integration/mon-entreprise/persistence-simulation.js | 2 +- site/source/storage/persistSimulation.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/cypress/integration/mon-entreprise/persistence-simulation.js b/site/cypress/integration/mon-entreprise/persistence-simulation.js index a8f4deb4a..3e40fee2c 100644 --- a/site/cypress/integration/mon-entreprise/persistence-simulation.js +++ b/site/cypress/integration/mon-entreprise/persistence-simulation.js @@ -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 }) diff --git a/site/source/storage/persistSimulation.ts b/site/source/storage/persistSimulation.ts index 4f5780673..1d99b1fc1 100644 --- a/site/source/storage/persistSimulation.ts +++ b/site/source/storage/persistSimulation.ts @@ -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}`