mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
build fix
This commit is contained in:
parent
9ae58d45ec
commit
466f04c86d
@ -22,13 +22,14 @@ const localStorageKey = 'ocean-user-preferences'
|
||||
|
||||
function getLocalStorage() {
|
||||
const storageParsed =
|
||||
window && JSON.parse(window.localStorage.getItem(localStorageKey))
|
||||
window !== undefined &&
|
||||
JSON.parse(window.localStorage.getItem(localStorageKey))
|
||||
return storageParsed
|
||||
}
|
||||
|
||||
function setLocalStorage(values: UserPreferencesValue) {
|
||||
return (
|
||||
window &&
|
||||
window !== undefined &&
|
||||
window.localStorage.setItem(localStorageKey, JSON.stringify(values))
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user