@saasquatch/mint-components 2.0.2-21 → 2.0.2-22

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.
@@ -1105,8 +1105,12 @@ function useBankingInfoForm(props) {
1105
1105
  setPaymentMethodChecked,
1106
1106
  setPaymentScheduleChecked,
1107
1107
  onBack: () => {
1108
- setStep("/dashboard");
1109
- window.location.hash = "";
1108
+ if (window.location.hash) {
1109
+ window.location.hash = "";
1110
+ }
1111
+ else {
1112
+ setStep("/dashboard");
1113
+ }
1110
1114
  },
1111
1115
  setCountrySearch,
1112
1116
  onVerification,
@@ -1780,11 +1784,16 @@ function useDocusignForm(props) {
1780
1784
  }
1781
1785
  };
1782
1786
  const progressStep = () => {
1783
- setStep(context.overrideNextStep ||
1784
- !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1785
- !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1786
- ? "/dashboard"
1787
- : "/4");
1787
+ if (window.location.hash) {
1788
+ window.location.hash = "";
1789
+ }
1790
+ else {
1791
+ setStep(context.overrideNextStep ||
1792
+ !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1793
+ !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1794
+ ? "/dashboard"
1795
+ : "/4");
1796
+ }
1788
1797
  };
1789
1798
  const allLoading = userLoading || documentLoading || loading;
1790
1799
  return {
@@ -327,8 +327,12 @@ export function useBankingInfoForm(props) {
327
327
  setPaymentMethodChecked,
328
328
  setPaymentScheduleChecked,
329
329
  onBack: () => {
330
- setStep("/dashboard");
331
- window.location.hash = "";
330
+ if (window.location.hash) {
331
+ window.location.hash = "";
332
+ }
333
+ else {
334
+ setStep("/dashboard");
335
+ }
332
336
  },
333
337
  setCountrySearch,
334
338
  onVerification,
@@ -115,11 +115,16 @@ export function useDocusignForm(props) {
115
115
  }
116
116
  };
117
117
  const progressStep = () => {
118
- setStep(context.overrideNextStep ||
119
- !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
120
- !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
121
- ? "/dashboard"
122
- : "/4");
118
+ if (window.location.hash) {
119
+ window.location.hash = "";
120
+ }
121
+ else {
122
+ setStep(context.overrideNextStep ||
123
+ !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
124
+ !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
125
+ ? "/dashboard"
126
+ : "/4");
127
+ }
123
128
  };
124
129
  const allLoading = userLoading || documentLoading || loading;
125
130
  return {
@@ -1101,8 +1101,12 @@ function useBankingInfoForm(props) {
1101
1101
  setPaymentMethodChecked,
1102
1102
  setPaymentScheduleChecked,
1103
1103
  onBack: () => {
1104
- setStep("/dashboard");
1105
- window.location.hash = "";
1104
+ if (window.location.hash) {
1105
+ window.location.hash = "";
1106
+ }
1107
+ else {
1108
+ setStep("/dashboard");
1109
+ }
1106
1110
  },
1107
1111
  setCountrySearch,
1108
1112
  onVerification,
@@ -1776,11 +1780,16 @@ function useDocusignForm(props) {
1776
1780
  }
1777
1781
  };
1778
1782
  const progressStep = () => {
1779
- setStep(context.overrideNextStep ||
1780
- !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1781
- !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1782
- ? "/dashboard"
1783
- : "/4");
1783
+ if (window.location.hash) {
1784
+ window.location.hash = "";
1785
+ }
1786
+ else {
1787
+ setStep(context.overrideNextStep ||
1788
+ !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1789
+ !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1790
+ ? "/dashboard"
1791
+ : "/4");
1792
+ }
1784
1793
  };
1785
1794
  const allLoading = userLoading || documentLoading || loading;
1786
1795
  return {