@saasquatch/mint-components 1.16.0-6 → 1.16.0-8

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.
@@ -1199,6 +1199,8 @@ function useBankingInfoForm(props) {
1199
1199
  }
1200
1200
  // Fire form change event
1201
1201
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1202
+ // reset redirect hash
1203
+ window.location.hash = "";
1202
1204
  await refetch();
1203
1205
  setStep("/dashboard");
1204
1206
  }
@@ -2254,6 +2256,8 @@ function useDocusignForm(props) {
2254
2256
  throw new Error();
2255
2257
  // Fire form change event
2256
2258
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
2259
+ // reset redirect hash
2260
+ window.location.hash = "";
2257
2261
  setShowExitButton(true);
2258
2262
  }
2259
2263
  catch (e) {
@@ -3224,6 +3228,8 @@ function useIndirectTaxForm(props) {
3224
3228
  const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3225
3229
  // Fire form change event
3226
3230
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
3231
+ // reset redirect hash
3232
+ window.location.hash = "";
3227
3233
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
3228
3234
  !hasValidCurrentDocument) {
3229
3235
  // Go to docusign form
@@ -7984,6 +7990,8 @@ function useUserInfoForm(props) {
7984
7990
  postalCode: userData.postalCode,
7985
7991
  currency: userData.currency,
7986
7992
  });
7993
+ // reset redirect hash
7994
+ window.location.hash = "";
7987
7995
  const nextStep = context.overrideNextStep || "/2";
7988
7996
  setStep(nextStep);
7989
7997
  }
@@ -250,6 +250,8 @@ export function useBankingInfoForm(props) {
250
250
  }
251
251
  // Fire form change event
252
252
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
253
+ // reset redirect hash
254
+ window.location.hash = "";
253
255
  await refetch();
254
256
  setStep("/dashboard");
255
257
  }
@@ -105,6 +105,8 @@ export function useDocusignForm(props) {
105
105
  throw new Error();
106
106
  // Fire form change event
107
107
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
108
+ // reset redirect hash
109
+ window.location.hash = "";
108
110
  setShowExitButton(true);
109
111
  }
110
112
  catch (e) {
@@ -172,6 +172,8 @@ export function useIndirectTaxForm(props) {
172
172
  const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
173
173
  // Fire form change event
174
174
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
175
+ // reset redirect hash
176
+ window.location.hash = "";
175
177
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
176
178
  !hasValidCurrentDocument) {
177
179
  // Go to docusign form
@@ -153,6 +153,8 @@ export function useUserInfoForm(props) {
153
153
  postalCode: userData.postalCode,
154
154
  currency: userData.currency,
155
155
  });
156
+ // reset redirect hash
157
+ window.location.hash = "";
156
158
  const nextStep = context.overrideNextStep || "/2";
157
159
  setStep(nextStep);
158
160
  }
@@ -1195,6 +1195,8 @@ function useBankingInfoForm(props) {
1195
1195
  }
1196
1196
  // Fire form change event
1197
1197
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
1198
+ // reset redirect hash
1199
+ window.location.hash = "";
1198
1200
  await refetch();
1199
1201
  setStep("/dashboard");
1200
1202
  }
@@ -2250,6 +2252,8 @@ function useDocusignForm(props) {
2250
2252
  throw new Error();
2251
2253
  // Fire form change event
2252
2254
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
2255
+ // reset redirect hash
2256
+ window.location.hash = "";
2253
2257
  setShowExitButton(true);
2254
2258
  }
2255
2259
  catch (e) {
@@ -3220,6 +3224,8 @@ function useIndirectTaxForm(props) {
3220
3224
  const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3221
3225
  // Fire form change event
3222
3226
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
3227
+ // reset redirect hash
3228
+ window.location.hash = "";
3223
3229
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
3224
3230
  !hasValidCurrentDocument) {
3225
3231
  // Go to docusign form
@@ -7980,6 +7986,8 @@ function useUserInfoForm(props) {
7980
7986
  postalCode: userData.postalCode,
7981
7987
  currency: userData.currency,
7982
7988
  });
7989
+ // reset redirect hash
7990
+ window.location.hash = "";
7983
7991
  const nextStep = context.overrideNextStep || "/2";
7984
7992
  setStep(nextStep);
7985
7993
  }