mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-23 16:19:40 +00:00
WA-234 Adding log errors when saving data in localstorage
This commit is contained in:
parent
577d7e8749
commit
70140df4db
@ -28,7 +28,8 @@ export const saveSafes = (safes: Object) => {
|
||||
const serializedState = JSON.stringify(safes)
|
||||
localStorage.setItem(SAFES_KEY, serializedState)
|
||||
} 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)
|
||||
localStorage.setItem(`${OWNERS_KEY}-${safeAddress}`, serializedState)
|
||||
} catch (err) {
|
||||
// Ignore write errors
|
||||
// eslint-disable-next-line
|
||||
console.log('Error storing owners in localstorage')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user