mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 14:20:52 +01:00
fix localstorage-i blame bill for my fuckup
This commit is contained in:
parent
aba4ddf2db
commit
cc6382bf0a
@ -2,7 +2,7 @@ export const GetLocalStorage = <T>(key: string) =>
|
||||
{
|
||||
try
|
||||
{
|
||||
JSON.parse(window.localStorage.getItem(key)) as T ?? null
|
||||
return JSON.parse(window.localStorage.getItem(key)) as T ?? null
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user