mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
login: Fix console crash when retrieving null value from local storage
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8795 GitOrigin-RevId: 95e39e46a3193fd0ac47a8e69b58e9172942d6e3
This commit is contained in:
parent
13b5f277ac
commit
30f32b676c
@ -25,7 +25,7 @@ export const getFromLS = () => {
|
||||
|
||||
export const getKeyFromLS = key => {
|
||||
const retrieveFromLS = getFromLS();
|
||||
return retrieveFromLS[key] || '';
|
||||
return retrieveFromLS?.[key] || '';
|
||||
};
|
||||
|
||||
export const modifyKey = (key, value) => {
|
||||
|
Loading…
Reference in New Issue
Block a user