Skip to content

Edit KYC err msg#787

Merged
zaelgohary merged 8 commits intodevelopmentfrom
development_edit_balance_err
Dec 12, 2024
Merged

Edit KYC err msg#787
zaelgohary merged 8 commits intodevelopmentfrom
development_edit_balance_err

Conversation

@zaelgohary
Copy link
Copy Markdown
Contributor

Related issue: #771

@zaelgohary zaelgohary marked this pull request as draft December 4, 2024 09:33
@zaelgohary zaelgohary marked this pull request as ready for review December 10, 2024 13:25
));
} on NotEnoughBalance catch (_) {
final wallets = await getPkidWallets();
final wallet = wallets.firstWhere((w) => w.type == WalletType.NATIVE);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

firstWhere will crash if the list is empty, please use where

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

Co-authored-by: AhmedHanafy725 <41957921+AhmedHanafy725@users.noreply.github.com>
@zaelgohary zaelgohary merged commit 3bafa01 into development Dec 12, 2024
@zaelgohary zaelgohary deleted the development_edit_balance_err branch December 12, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants