Skip to content

Commit

Permalink
Fixed: case of generating an authenticated link for oms(#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Sep 14, 2023
1 parent 91b10f4 commit 8cfe016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const goToOms = (token: string, oms: string) => {
const link = (oms.startsWith('http') ? oms.replace(/api\/?/, "") : `https://${oms}.hotwax.io/`) + `?token=${token}`
const link = (oms.startsWith('http') ? oms.replace(/api\/?/, "") : `https://${oms}.hotwax.io/`) + `commerce/control/main?token=${token}`

window.open(link, '_blank', 'noopener, noreferrer')
}
Expand Down

0 comments on commit 8cfe016

Please sign in to comment.