diff --git a/src/App.tsx b/src/App.tsx index c6fb714..5755dca 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -855,6 +855,24 @@ function App() { }); balanceSetInterval() }; + + const refetchUserInfo = () => { + window + .sendMessage('userInfo') + .then((response) => { + if (response && !response.error) { + setUserInfo(response); + } + }) + .catch((error) => { + console.error('Failed to get user info:', error); + }); + }; + + const getBalanceAndUserInfoFunc = () => { + getBalanceFunc(); + refetchUserInfo(); + }; const getLtcBalanceFunc = () => { setLtcBalanceLoading(true); window @@ -1639,7 +1657,7 @@ function App() { {balance?.toFixed(2)} QORT