From 7777f007b123099f2a20fc56d43377bd6bd28f60 Mon Sep 17 00:00:00 2001 From: Fran Domovic Date: Wed, 19 Jun 2024 17:51:09 +0200 Subject: [PATCH] fix: lint --- packages/calimero-sdk/src/storage/storage.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/calimero-sdk/src/storage/storage.ts b/packages/calimero-sdk/src/storage/storage.ts index 2d6519f15..98a03f647 100644 --- a/packages/calimero-sdk/src/storage/storage.ts +++ b/packages/calimero-sdk/src/storage/storage.ts @@ -1,15 +1,15 @@ import { ClientKey } from '../types/storage'; -export const CLIENT_KEY = "client-key"; -export const APP_URL = "app-url"; -export const AUTHORIZED = "node-authorized"; +export const CLIENT_KEY = 'lient-key'; +export const APP_URL = 'app-url'; +export const AUTHORIZED = 'node-authorized'; export const setStorageClientKey = (clientKey: ClientKey) => { localStorage.setItem(CLIENT_KEY, JSON.stringify(clientKey)); }; export const getStorageClientKey = (): ClientKey | null => { - if (typeof window !== "undefined" && window.localStorage) { + if (typeof window !== 'undefined' && window.localStorage) { let clientKeystore: ClientKey = JSON.parse( localStorage.getItem(CLIENT_KEY) ); @@ -29,7 +29,7 @@ export const setStorageNodeAuthorized = () => { }; export const getStorageNodeAuthorized = (): boolean | null => { - if (typeof window !== "undefined" && window.localStorage) { + if (typeof window !== 'undefined' && window.localStorage) { let authorized: boolean = JSON.parse(localStorage.getItem(AUTHORIZED)); if (authorized) { return authorized; @@ -51,7 +51,7 @@ export const setAppEndpointKey = (url: String) => { }; export const getAppEndpointKey = (): String | null => { - if (typeof window !== "undefined" && window.localStorage) { + if (typeof window !== 'undefined' && window.localStorage) { let url: String = JSON.parse(localStorage.getItem(APP_URL)); if (url) { return url;