mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 23:27:26 +01:00
Merge pull request #5775 from BlueWallet/scroll
FIX: The scrolling behavior after deleting a wallet was not natural.
This commit is contained in:
commit
e70780841c
1 changed files with 1 additions and 4 deletions
|
@ -76,10 +76,7 @@ const WalletsList = () => {
|
|||
if (wallets.length > walletsCount.current) {
|
||||
walletsCarousel.current?.scrollToItem({ item: wallets[walletsCount.current] });
|
||||
}
|
||||
// wallet has been deleted
|
||||
if (wallets.length < walletsCount.current) {
|
||||
walletsCarousel.current?.scrollToItem({ item: false });
|
||||
}
|
||||
|
||||
walletsCount.current = wallets.length;
|
||||
}, [wallets]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue