Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic committed Jun 19, 2024
1 parent 0fb0a4a commit 7777f00
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/calimero-sdk/src/storage/storage.ts
Original file line number Diff line number Diff line change
@@ -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)
);
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 7777f00

Please sign in to comment.