Update hooks/useMenuElements.ios.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Marcos Rodriguez Vélez 2024-11-07 23:30:23 -04:00 committed by GitHub
parent 95de8d56f5
commit f069800895
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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],