hide account value chart when not connected

This commit is contained in:
saml33 2022-08-27 20:40:31 +10:00
parent 7435bc4ad2
commit 68ae404bd4
1 changed files with 11 additions and 6 deletions

View File

@ -152,7 +152,14 @@ const Index: NextPage = () => {
)}
/>
) : (
(0).toFixed(2)
<FlipNumbers
height={48}
width={32}
play
delay={0.05}
duration={1}
numbers={'0.00'}
/>
)}
</div>
{performanceData.length && mangoAccount ? (
@ -164,15 +171,14 @@ const Index: NextPage = () => {
) : (
''
)}
<p
className={`mb-0.5 ${
className={
accountValueChange > 0
? 'text-th-green'
: accountValueChange < 0
? 'text-th-red'
: 'text-th-fgd-4'
}`}
}
>
{isNaN(accountValueChange)
? '0.00'
@ -183,13 +189,12 @@ const Index: NextPage = () => {
) : (
<div className="mt-1 flex items-center space-x-2">
<UpTriangle />
<p className="text-th-green">0.00%</p>
</div>
)}
</div>
{!loadPerformanceData ? (
performanceData.length ? (
mangoAccount && performanceData.length ? (
<div
className="relative flex items-end"
onMouseEnter={() =>