Skip to content

Commit

Permalink
[NOTASK] fix undefined bug for unknown ibanCountry
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick1712 committed Jan 4, 2025
1 parent 9f4540b commit 3a65f01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class BankAccountService {
private async isValidIbanCountry(iban: string, kycType = KycType.DFX): Promise<boolean> {
const ibanCountry = await this.countryService.getCountryWithSymbol(iban.substring(0, 2));

return ibanCountry.isEnabled(kycType);
return ibanCountry?.isEnabled(kycType);
}

private async initBankAccount(iban: string): Promise<BankAccount> {
Expand Down

0 comments on commit 3a65f01

Please sign in to comment.