Skip to content

Commit

Permalink
refactored delay function
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavanakarwade committed Dec 9, 2024
1 parent 78bf91e commit 85611e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ 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)) {
Expand Down

0 comments on commit 85611e2

Please sign in to comment.