@saasquatch/mint-components 1.16.0-7 → 1.16.0-9

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.
@@ -1201,6 +1201,8 @@ function useBankingInfoForm(props) {
1201
1201
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1202
1202
  await refetch();
1203
1203
  setStep("/dashboard");
1204
+ // reset redirect hash
1205
+ window.location.hash = "";
1204
1206
  }
1205
1207
  catch (e) {
1206
1208
  console.error(e);
@@ -3239,6 +3241,8 @@ function useIndirectTaxForm(props) {
3239
3241
  setStep("/dashboard");
3240
3242
  }
3241
3243
  }
3244
+ // reset redirect hash
3245
+ window.location.hash = "";
3242
3246
  }
3243
3247
  catch (e) {
3244
3248
  setErrors({ general: true });
@@ -4467,10 +4471,6 @@ function useTaxAndCash() {
4467
4471
  setStep(currentStep);
4468
4472
  }
4469
4473
  }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4470
- stencilHooks_module.useEffect(() => {
4471
- console.log("reset hash");
4472
- window.location.hash = "";
4473
- }, [setStep]);
4474
4474
  function getFinanceNetworkFilter() {
4475
4475
  var _a, _b, _c;
4476
4476
  if (step === "/1")
@@ -7988,10 +7988,10 @@ function useUserInfoForm(props) {
7988
7988
  postalCode: userData.postalCode,
7989
7989
  currency: userData.currency,
7990
7990
  });
7991
- // reset redirect hash
7992
- window.location.hash = "";
7993
7991
  const nextStep = context.overrideNextStep || "/2";
7994
7992
  setStep(nextStep);
7993
+ // reset redirect hash
7994
+ window.location.hash = "";
7995
7995
  }
7996
7996
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
7997
7997
  const regionObj = hasStates
@@ -252,6 +252,8 @@ export function useBankingInfoForm(props) {
252
252
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
253
253
  await refetch();
254
254
  setStep("/dashboard");
255
+ // reset redirect hash
256
+ window.location.hash = "";
255
257
  }
256
258
  catch (e) {
257
259
  console.error(e);
@@ -187,6 +187,8 @@ export function useIndirectTaxForm(props) {
187
187
  setStep("/dashboard");
188
188
  }
189
189
  }
190
+ // reset redirect hash
191
+ window.location.hash = "";
190
192
  }
191
193
  catch (e) {
192
194
  setErrors({ general: true });
@@ -146,10 +146,6 @@ export function useTaxAndCash() {
146
146
  setStep(currentStep);
147
147
  }
148
148
  }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
149
- useEffect(() => {
150
- console.log("reset hash");
151
- window.location.hash = "";
152
- }, [setStep]);
153
149
  function getFinanceNetworkFilter() {
154
150
  var _a, _b, _c;
155
151
  if (step === "/1")
@@ -153,10 +153,10 @@ export function useUserInfoForm(props) {
153
153
  postalCode: userData.postalCode,
154
154
  currency: userData.currency,
155
155
  });
156
- // reset redirect hash
157
- window.location.hash = "";
158
156
  const nextStep = context.overrideNextStep || "/2";
159
157
  setStep(nextStep);
158
+ // reset redirect hash
159
+ window.location.hash = "";
160
160
  }
161
161
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
162
162
  const regionObj = hasStates
@@ -1197,6 +1197,8 @@ function useBankingInfoForm(props) {
1197
1197
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
1198
1198
  await refetch();
1199
1199
  setStep("/dashboard");
1200
+ // reset redirect hash
1201
+ window.location.hash = "";
1200
1202
  }
1201
1203
  catch (e) {
1202
1204
  console.error(e);
@@ -3235,6 +3237,8 @@ function useIndirectTaxForm(props) {
3235
3237
  setStep("/dashboard");
3236
3238
  }
3237
3239
  }
3240
+ // reset redirect hash
3241
+ window.location.hash = "";
3238
3242
  }
3239
3243
  catch (e) {
3240
3244
  setErrors({ general: true });
@@ -4463,10 +4467,6 @@ function useTaxAndCash() {
4463
4467
  setStep(currentStep);
4464
4468
  }
4465
4469
  }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4466
- useEffect(() => {
4467
- console.log("reset hash");
4468
- window.location.hash = "";
4469
- }, [setStep]);
4470
4470
  function getFinanceNetworkFilter() {
4471
4471
  var _a, _b, _c;
4472
4472
  if (step === "/1")
@@ -7984,10 +7984,10 @@ function useUserInfoForm(props) {
7984
7984
  postalCode: userData.postalCode,
7985
7985
  currency: userData.currency,
7986
7986
  });
7987
- // reset redirect hash
7988
- window.location.hash = "";
7989
7987
  const nextStep = context.overrideNextStep || "/2";
7990
7988
  setStep(nextStep);
7989
+ // reset redirect hash
7990
+ window.location.hash = "";
7991
7991
  }
7992
7992
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
7993
7993
  const regionObj = hasStates