From cfa4afc5060c8e91077dd35421fe7e82d4eea119 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Wed, 28 May 2025 18:55:03 +0300 Subject: [PATCH] fixes --- src/App.tsx | 20 +++++++++++++++++++- src/background.ts | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) 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