From 4973a8a6b8f405d65ec8973d8ba91a4bb9724f32 Mon Sep 17 00:00:00 2001 From: Viswas Haridas <37623357+JustARatherRidiculouslyLongUsername@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:03:28 +0530 Subject: [PATCH] fix: update login error flow and fix redirect url (#1117) --- .../business-central-onboarding-landing.component.html | 6 +++--- .../business-central-onboarding-landing.component.ts | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/integrations/business-central/business-central-onboarding/business-central-onboarding-landing/business-central-onboarding-landing.component.html b/src/app/integrations/business-central/business-central-onboarding/business-central-onboarding-landing/business-central-onboarding-landing.component.html index a8428cf09..264ebdc7a 100644 --- a/src/app/integrations/business-central/business-central-onboarding/business-central-onboarding-landing/business-central-onboarding-landing.component.html +++ b/src/app/integrations/business-central/business-central-onboarding/business-central-onboarding-landing/business-central-onboarding-landing.component.html @@ -1,4 +1,4 @@ -
+
@@ -6,9 +6,9 @@
- { const errorMessage = 'message' in error.error ? error.error.message : 'Failed to connect to Dynamic 365 Business Central. Please try again'; if (errorMessage === 'Please choose the correct Dynamic 365 Business Central account') { - this.isIncorrectQBOConnectedDialogVisible = false; + this.isIncorrectBCConnectedDialogVisible = true; } else { this.toastService.displayToastMessage(ToastSeverity.ERROR, errorMessage); this.router.navigate([`/integrations/business_central/onboarding/landing`]);