mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
Update hooks/useMenuElements.ios.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
95de8d56f5
commit
f069800895
@ -36,8 +36,14 @@ const useMenuElements = () => {
|
||||
addWallet: () => dispatchNavigate('AddWalletRoot'),
|
||||
importWallet: () => dispatchNavigate('AddWalletRoot', 'ImportWallet'),
|
||||
reloadTransactions: () => {
|
||||
console.debug('Calling reloadTransactionsMenuActionFunction:', reloadTransactionsMenuActionRef.current);
|
||||
reloadTransactionsMenuActionRef.current();
|
||||
if (__DEV__) {
|
||||
console.debug('Calling reloadTransactionsMenuActionFunction');
|
||||
}
|
||||
if (reloadTransactionsMenuActionRef.current) {
|
||||
reloadTransactionsMenuActionRef.current();
|
||||
} else {
|
||||
console.warn('No reload function set for reloadTransactions menu action');
|
||||
}
|
||||
},
|
||||
}),
|
||||
[dispatchNavigate],
|
||||
|
Loading…
Reference in New Issue
Block a user