From 74f31ea897de6de9b85207be5f576292ba9e49d3 Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Mon, 9 Dec 2024 10:56:57 +0530 Subject: [PATCH] removed delay --- src/api/Auth.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/api/Auth.ts b/src/api/Auth.ts index 6cc46a30..9c3204aa 100644 --- a/src/api/Auth.ts +++ b/src/api/Auth.ts @@ -268,7 +268,6 @@ export const decryptData = (value: string): string => { export const setToLocalStorage = async (key: string, value: any) =>{ - await delay(1000); // 2-second delay // If passed value is object then checked empty object if (typeof value === 'object' && Boolean(Object.keys(value).length <= 0)) { @@ -285,10 +284,7 @@ export const setToLocalStorage = async (key: string, value: any) =>{ return true } -const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); - export const getFromLocalStorage = async (key: string) => { - await delay(1000); // 2-second delay try { const encryptedValue = localStorage.getItem(key);