-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(restore): duplicated wallet feature and plate display #3590
Conversation
apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreHwWallet/ConnectNanoXScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreHwWallet/ConnectNanoXScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreHwWallet/ConnectNanoXScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/WalletManager/wallet-manager.ts
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/WalletManager/wallet-manager.ts
Outdated
Show resolved
Hide resolved
...allet-mobile/src/features/SetupWallet/common/WalletDuplicatedModal/WalletDuplicatedModal.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreWallet/RestoreWalletScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/SetupWallet/useCases/RestoreWallet/RestoreWalletScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/WalletManager/wallet-manager.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last points and I think is real good. (there is this misconception that we validate the wallet, but instead we check if the account was already added)
yeah it makes total sense |
Co-authored-by: Juliano Lazzarotto <[email protected]> Signed-off-by: banklesss <[email protected]>
const duplicatedAccountWalletMeta = Array.from(walletManager.walletMetas.values()).find( | ||
(walletMeta) => walletMeta.plate === plate, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
happens inside wallet.isWalletAccountDuplicated
const duplicatedAccountWalletMeta = Array.from(walletManager.walletMetas.values()).find( | |
(walletMeta) => walletMeta.plate === plate, | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case we need to get the specific wallet meta to display the info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some
Here is find
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applied a refactor
Description / Change(s) / Related issue(s)
Adding:
Ticket
YOMO-1886
YOMO-1884