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

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.
@@ -906,8 +906,7 @@ function useBankingInfoForm(props) {
906
906
  console.log({ context });
907
907
  domContextHooks_module.useEffect(() => {
908
908
  // reset redirect hash
909
- if (window.location.hash !== "#4")
910
- window.location.hash = "";
909
+ window.location.hash = "";
911
910
  }, []);
912
911
  domContextHooks_module.useEffect(() => {
913
912
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -1717,6 +1716,10 @@ function useDocusignForm(props) {
1717
1716
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
1718
1717
  const actualDocumentType = existingDocumentType ||
1719
1718
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
1719
+ domContextHooks_module.useEffect(() => {
1720
+ // reset redirect hash
1721
+ window.location.hash = "";
1722
+ }, []);
1720
1723
  domContextHooks_module.useEffect(() => {
1721
1724
  if (!existingDocumentType)
1722
1725
  return;
@@ -4397,12 +4400,12 @@ const useTaxAndCashDashboard = (props) => {
4397
4400
  // Clear override context once on submitted
4398
4401
  setContext({});
4399
4402
  if (window.location.hash) {
4400
- setStep(`/${window.location.hash.replace("#", "")}`);
4401
4403
  setContext({
4402
4404
  overrideNextStep: "/dashboard",
4403
4405
  overrideBackStep: "/dashboard",
4404
4406
  hideSteps: true,
4405
4407
  });
4408
+ setStep(`/${window.location.hash.replace("#", "")}`);
4406
4409
  }
4407
4410
  }, []);
4408
4411
  const { data, loading, errors: userError, refetch, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
@@ -128,8 +128,7 @@ export function useBankingInfoForm(props) {
128
128
  console.log({ context });
129
129
  useEffect(() => {
130
130
  // reset redirect hash
131
- if (window.location.hash !== "#4")
132
- window.location.hash = "";
131
+ window.location.hash = "";
133
132
  }, []);
134
133
  useEffect(() => {
135
134
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -50,6 +50,10 @@ 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
+ }, []);
53
57
  useEffect(() => {
54
58
  if (!existingDocumentType)
55
59
  return;
@@ -61,12 +61,12 @@ export const useTaxAndCashDashboard = (props) => {
61
61
  // Clear override context once on submitted
62
62
  setContext({});
63
63
  if (window.location.hash) {
64
- setStep(`/${window.location.hash.replace("#", "")}`);
65
64
  setContext({
66
65
  overrideNextStep: "/dashboard",
67
66
  overrideBackStep: "/dashboard",
68
67
  hideSteps: true,
69
68
  });
69
+ setStep(`/${window.location.hash.replace("#", "")}`);
70
70
  }
71
71
  }, []);
72
72
  const { data, loading, errors: userError, refetch, } = useParentQueryValue(USER_QUERY_NAMESPACE);
@@ -902,8 +902,7 @@ function useBankingInfoForm(props) {
902
902
  console.log({ context });
903
903
  useEffect(() => {
904
904
  // reset redirect hash
905
- if (window.location.hash !== "#4")
906
- window.location.hash = "";
905
+ window.location.hash = "";
907
906
  }, []);
908
907
  useEffect(() => {
909
908
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -1713,6 +1712,10 @@ function useDocusignForm(props) {
1713
1712
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
1714
1713
  const actualDocumentType = existingDocumentType ||
1715
1714
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
1715
+ useEffect(() => {
1716
+ // reset redirect hash
1717
+ window.location.hash = "";
1718
+ }, []);
1716
1719
  useEffect(() => {
1717
1720
  if (!existingDocumentType)
1718
1721
  return;
@@ -4393,12 +4396,12 @@ const useTaxAndCashDashboard = (props) => {
4393
4396
  // Clear override context once on submitted
4394
4397
  setContext({});
4395
4398
  if (window.location.hash) {
4396
- setStep(`/${window.location.hash.replace("#", "")}`);
4397
4399
  setContext({
4398
4400
  overrideNextStep: "/dashboard",
4399
4401
  overrideBackStep: "/dashboard",
4400
4402
  hideSteps: true,
4401
4403
  });
4404
+ setStep(`/${window.location.hash.replace("#", "")}`);
4402
4405
  }
4403
4406
  }, []);
4404
4407
  const { data, loading, errors: userError, refetch, } = $n(USER_QUERY_NAMESPACE);