diff --git a/src/utils/localStorage.js b/src/utils/localStorage.js index 40edc4c0..e537d38a 100644 --- a/src/utils/localStorage.js +++ b/src/utils/localStorage.js @@ -1,9 +1,10 @@ // @flow -const SAFES_KEY = 'SAFES' +export const SAFES_KEY = 'SAFES' +export const TX_KEY = 'TX' -export const loadSafes = () => { +export const load = (key: string) => { try { - const serializedState = localStorage.getItem(SAFES_KEY) + const serializedState = localStorage.getItem(key) if (serializedState === null) { return undefined }