diff --git a/src/utils/index.ts b/src/utils/index.ts index 883df6a..3c585de 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -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') }