Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bistaastha committed Jan 23, 2025
1 parent da848ba commit 9fefe98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class SpenderOnboardingConnectCardStepComponent implements OnInit, OnChan

generateMessage(): string {
if (this.cardsList.successfulCards.length > 0) {
return 'We ran into an issue while processing your request. You can cancel and retry connecting the failed card or proceed to the next step.';
return 'Some cards were not enrolled. You can enroll them later from Settings.';
} else if (this.cardsList.failedCards.length > 1) {
const allButLast = this.cardsList.failedCards.slice(0, -1).join(', ');
const lastCard = this.cardsList.failedCards[this.cardsList.failedCards.length - 1];
Expand Down Expand Up @@ -156,9 +156,8 @@ export class SpenderOnboardingConnectCardStepComponent implements OnInit, OnChan

await errorPopover.present();

const { data } = (await errorPopover.onWillDismiss()) as OverlayResponse<{
action: string;
}>;
await errorPopover.onWillDismiss();

if (this.cardsList.successfulCards.length > 0) {
this.isStepComplete.emit(true);
}
Expand Down Expand Up @@ -215,11 +214,6 @@ export class SpenderOnboardingConnectCardStepComponent implements OnInit, OnChan
}

ngOnInit(): void {
this.cardsList = {
successfulCards: ['***1111'],
failedCards: ['***1111', '****5555'],
};
this.showErrorPopover();
this.fg = this.fb.group({});
this.trackingService.eventTrack('Connect Cards Onboarding Step - Viewed');
this.setupForm();
Expand Down
1 change: 1 addition & 0 deletions src/app/fyle/spender-onboarding/spender-onboarding.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class SpenderOnboardingPage {
} else {
this.currentStep = OnboardingStep.CONNECT_CARD;
}
this.currentStep = OnboardingStep.CONNECT_CARD;
}
}),
finalize(() => {
Expand Down

0 comments on commit 9fefe98

Please sign in to comment.