WA-234 Adding log errors when saving data in localstorage

This commit is contained in:
apanizo 2018-06-08 11:02:02 +02:00
parent 577d7e8749
commit 70140df4db
1 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,8 @@ export const saveSafes = (safes: Object) => {
const serializedState = JSON.stringify(safes) const serializedState = JSON.stringify(safes)
localStorage.setItem(SAFES_KEY, serializedState) localStorage.setItem(SAFES_KEY, serializedState)
} catch (err) { } catch (err) {
// Ignore write errors // eslint-disable-next-line
console.log('Error storing safe info in localstorage')
} }
} }
@ -38,7 +39,8 @@ export const setOwners = (safeAddress: string, owners: List<Owner>) => {
const serializedState = JSON.stringify(ownersAsMap) const serializedState = JSON.stringify(ownersAsMap)
localStorage.setItem(`${OWNERS_KEY}-${safeAddress}`, serializedState) localStorage.setItem(`${OWNERS_KEY}-${safeAddress}`, serializedState)
} catch (err) { } catch (err) {
// Ignore write errors // eslint-disable-next-line
console.log('Error storing owners in localstorage')
} }
} }