You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the value 'undefined' is persisted accidentally in storage, attempting to retrieve and parse it using JSON.parse throws an exception. This happens because JSON.parse('undefined') is not valid JSON, resulting in a runtime error.
When the value 'undefined' is persisted accidentally in storage, attempting to retrieve and parse it using JSON.parse throws an exception. This happens because JSON.parse('undefined') is not valid JSON, resulting in a runtime error.
storage-utils.ts
A potential fix could include checking explicitly for 'undefined' as a string, to avoid parsing errors:
The text was updated successfully, but these errors were encountered: