diff --git a/apps/miniapp/src/App.tsx b/apps/miniapp/src/App.tsx index 61165a3..0ab8f23 100644 --- a/apps/miniapp/src/App.tsx +++ b/apps/miniapp/src/App.tsx @@ -1923,7 +1923,7 @@ function App() { })) } - const renderPanel = () => { + const panel = createMemo(() => { switch (activeNav()) { case 'balances': return ( @@ -2342,7 +2342,7 @@ function App() { /> ) } - } + }) return (
@@ -2459,7 +2459,7 @@ function App() { onChange={setActiveNav} /> -
{renderPanel()}
+
{panel()}