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)
|
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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue