From 25695c87b01e127ee45b148cf93383259b250687 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Wed, 28 May 2025 18:54:52 +0300 Subject: [PATCH] fixes --- src/App.tsx | 20 +++++++++++++++++++- src/background/background.ts | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 5138080..fb60be6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -766,6 +766,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 @@ -1502,7 +1520,7 @@ function App() {