From f48422824ceb7864d1fbe4c43679d6242b255cdb Mon Sep 17 00:00:00 2001 From: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com> Date: Mon, 25 Nov 2024 11:26:48 +0100 Subject: [PATCH] Resolve the bug that was raised (#12086) --- .../sponsorships/families-for-enterprise-setup.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/src/app/admin-console/organizations/sponsorships/families-for-enterprise-setup.component.ts b/apps/web/src/app/admin-console/organizations/sponsorships/families-for-enterprise-setup.component.ts index 09ad27e6dc..b0a60a4d81 100644 --- a/apps/web/src/app/admin-console/organizations/sponsorships/families-for-enterprise-setup.component.ts +++ b/apps/web/src/app/admin-console/organizations/sponsorships/families-for-enterprise-setup.component.ts @@ -104,6 +104,9 @@ export class FamiliesForEnterpriseSetupComponent implements OnInit, OnDestroy { title: this.i18nService.t("errorOccured"), message: this.i18nService.t("offerNoLongerValid"), }); + + await this.router.navigate(["/"]); + return; } else { this.badToken = !this.preValidateSponsorshipResponse.isTokenValid; }