@saasquatch/mint-components 2.0.2-16 → 2.0.2-17

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.
@@ -4395,8 +4395,14 @@ const useTaxAndCashDashboard = (props) => {
4395
4395
  domContextHooks_module.useEffect(() => {
4396
4396
  // Clear override context once on submitted
4397
4397
  setContext({});
4398
- if (window.location.hash)
4398
+ if (window.location.hash) {
4399
+ setContext({
4400
+ overrideNextStep: "/dashboard",
4401
+ overrideBackStep: "/dashboard",
4402
+ hideSteps: true,
4403
+ });
4399
4404
  setStep(`/${window.location.hash.replace("#", "")}`);
4405
+ }
4400
4406
  }, []);
4401
4407
  const { data, loading, errors: userError, refetch, } = index_module.$n(usePayoutStatus.USER_QUERY_NAMESPACE);
4402
4408
  const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
@@ -60,8 +60,14 @@ export const useTaxAndCashDashboard = (props) => {
60
60
  useEffect(() => {
61
61
  // Clear override context once on submitted
62
62
  setContext({});
63
- if (window.location.hash)
63
+ if (window.location.hash) {
64
+ setContext({
65
+ overrideNextStep: "/dashboard",
66
+ overrideBackStep: "/dashboard",
67
+ hideSteps: true,
68
+ });
64
69
  setStep(`/${window.location.hash.replace("#", "")}`);
70
+ }
65
71
  }, []);
66
72
  const { data, loading, errors: userError, refetch, } = useParentQueryValue(USER_QUERY_NAMESPACE);
67
73
  const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
@@ -4391,8 +4391,14 @@ const useTaxAndCashDashboard = (props) => {
4391
4391
  useEffect(() => {
4392
4392
  // Clear override context once on submitted
4393
4393
  setContext({});
4394
- if (window.location.hash)
4394
+ if (window.location.hash) {
4395
+ setContext({
4396
+ overrideNextStep: "/dashboard",
4397
+ overrideBackStep: "/dashboard",
4398
+ hideSteps: true,
4399
+ });
4395
4400
  setStep(`/${window.location.hash.replace("#", "")}`);
4401
+ }
4396
4402
  }, []);
4397
4403
  const { data, loading, errors: userError, refetch, } = $n(USER_QUERY_NAMESPACE);
4398
4404
  const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;