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

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.
@@ -903,11 +903,6 @@ function useBankingInfoForm(props) {
903
903
  const paymentMethodChecked = !hasPayPal
904
904
  ? "toBankAccount"
905
905
  : _paymentMethodChecked;
906
- console.log({ context });
907
- domContextHooks_module.useEffect(() => {
908
- // reset redirect hash
909
- window.location.hash = "";
910
- }, []);
911
906
  domContextHooks_module.useEffect(() => {
912
907
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
913
908
  if (!userData)
@@ -1079,6 +1074,7 @@ function useBankingInfoForm(props) {
1079
1074
  }
1080
1075
  await runMutation(formData, token);
1081
1076
  setShowModal(false);
1077
+ window.location.hash = "";
1082
1078
  };
1083
1079
  const onVerification = async (token) => {
1084
1080
  host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
@@ -1108,7 +1104,10 @@ function useBankingInfoForm(props) {
1108
1104
  setBankCountry: updateBankCountry,
1109
1105
  setPaymentMethodChecked,
1110
1106
  setPaymentScheduleChecked,
1111
- onBack: () => setStep("/dashboard"),
1107
+ onBack: () => {
1108
+ setStep("/dashboard");
1109
+ window.location.hash = "";
1110
+ },
1112
1111
  setCountrySearch,
1113
1112
  onVerification,
1114
1113
  onVerificationHide: () => onVerification(null),
@@ -1716,10 +1715,6 @@ function useDocusignForm(props) {
1716
1715
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
1717
1716
  const actualDocumentType = existingDocumentType ||
1718
1717
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
1719
- domContextHooks_module.useEffect(() => {
1720
- // reset redirect hash
1721
- window.location.hash = "";
1722
- }, []);
1723
1718
  domContextHooks_module.useEffect(() => {
1724
1719
  if (!existingDocumentType)
1725
1720
  return;
@@ -125,11 +125,6 @@ export function useBankingInfoForm(props) {
125
125
  const paymentMethodChecked = !hasPayPal
126
126
  ? "toBankAccount"
127
127
  : _paymentMethodChecked;
128
- console.log({ context });
129
- useEffect(() => {
130
- // reset redirect hash
131
- window.location.hash = "";
132
- }, []);
133
128
  useEffect(() => {
134
129
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
135
130
  if (!userData)
@@ -301,6 +296,7 @@ export function useBankingInfoForm(props) {
301
296
  }
302
297
  await runMutation(formData, token);
303
298
  setShowModal(false);
299
+ window.location.hash = "";
304
300
  };
305
301
  const onVerification = async (token) => {
306
302
  host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
@@ -330,7 +326,10 @@ export function useBankingInfoForm(props) {
330
326
  setBankCountry: updateBankCountry,
331
327
  setPaymentMethodChecked,
332
328
  setPaymentScheduleChecked,
333
- onBack: () => setStep("/dashboard"),
329
+ onBack: () => {
330
+ setStep("/dashboard");
331
+ window.location.hash = "";
332
+ },
334
333
  setCountrySearch,
335
334
  onVerification,
336
335
  onVerificationHide: () => onVerification(null),
@@ -50,10 +50,6 @@ export function useDocusignForm(props) {
50
50
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
51
51
  const actualDocumentType = existingDocumentType ||
52
52
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
53
- useEffect(() => {
54
- // reset redirect hash
55
- window.location.hash = "";
56
- }, []);
57
53
  useEffect(() => {
58
54
  if (!existingDocumentType)
59
55
  return;
@@ -899,11 +899,6 @@ function useBankingInfoForm(props) {
899
899
  const paymentMethodChecked = !hasPayPal
900
900
  ? "toBankAccount"
901
901
  : _paymentMethodChecked;
902
- console.log({ context });
903
- useEffect(() => {
904
- // reset redirect hash
905
- window.location.hash = "";
906
- }, []);
907
902
  useEffect(() => {
908
903
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
909
904
  if (!userData)
@@ -1075,6 +1070,7 @@ function useBankingInfoForm(props) {
1075
1070
  }
1076
1071
  await runMutation(formData, token);
1077
1072
  setShowModal(false);
1073
+ window.location.hash = "";
1078
1074
  };
1079
1075
  const onVerification = async (token) => {
1080
1076
  host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
@@ -1104,7 +1100,10 @@ function useBankingInfoForm(props) {
1104
1100
  setBankCountry: updateBankCountry,
1105
1101
  setPaymentMethodChecked,
1106
1102
  setPaymentScheduleChecked,
1107
- onBack: () => setStep("/dashboard"),
1103
+ onBack: () => {
1104
+ setStep("/dashboard");
1105
+ window.location.hash = "";
1106
+ },
1108
1107
  setCountrySearch,
1109
1108
  onVerification,
1110
1109
  onVerificationHide: () => onVerification(null),
@@ -1712,10 +1711,6 @@ function useDocusignForm(props) {
1712
1711
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
1713
1712
  const actualDocumentType = existingDocumentType ||
1714
1713
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
1715
- useEffect(() => {
1716
- // reset redirect hash
1717
- window.location.hash = "";
1718
- }, []);
1719
1714
  useEffect(() => {
1720
1715
  if (!existingDocumentType)
1721
1716
  return;