@opexa/portal-components 0.0.166 → 0.0.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,14 +186,17 @@ export function SignUpForm() {
186
186
  }, children: "Log In" })] })] })), step === 2 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }), _jsxs("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: ["We\u2019ve sent a verification code to your mobile number", ' ', _jsx("span", { className: "font-semibold", children: mobileNumberParser.format(step1Form.getValues('mobileNumber')) }), ' ', "via text"] }), _jsxs("form", { ref: form2Ref, className: "mt-5", onSubmit: step2Form.handleSubmit(async ({ verificationCode }) => {
187
187
  const id = ObjectId.generate(ObjectType.MemberAccount).toString();
188
188
  const { mobileNumber } = step1Form.getValues();
189
+ const url = new URL(window.location.href);
190
+ const domain = search.has('m')
191
+ ? `${url.origin}/${search.get('m')}`
192
+ : `${url.origin}`;
189
193
  try {
190
194
  await signUpMutation.mutateAsync({
191
195
  id,
192
196
  mobileNumber: mobileNumberParser.format(mobileNumber),
193
197
  verificationCode: verificationCode.join(''),
194
198
  referralCode: search.get('referralCode') ?? undefined,
195
- domain: search.get('domain') ??
196
- new URL(window.location.href).hostname,
199
+ domain,
197
200
  btag: search.get('btag') ?? undefined,
198
201
  });
199
202
  const name = mobileNumberParser.format(mobileNumber);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.166",
3
+ "version": "0.0.167",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",