Skip to content

Commit

Permalink
Support ws on borrow page
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl committed Jan 3, 2025
1 parent a929c5a commit e567405
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sections/lending/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,8 @@ export const getLtvColor = (
return ltvColor
}

export const wssToHttps = (url: string) => url.replace("wss://", "https://")
export const wssToHttps = (url: string) => {
if (url.includes("ws://")) return url.replace("ws://", "http://")

return url.replace("wss://", "https://")
}

0 comments on commit e567405

Please sign in to comment.