fix: hide stats on first-open error and guard Total row against undefined

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-03 02:23:06 +00:00
parent c0e1079006
commit f8baa02efc

View file

@ -39,7 +39,7 @@
<span>{{ error }}</span>
<FButton size="tiny" outlined @click="loadActivePositionData">Retry</FButton>
</div>
<div class="profit-stats-wrapper">
<div v-if="!error || taxPaidGes !== undefined" class="profit-stats-wrapper">
<div class="profit-stats-item">
<div><b>Tax Paid</b></div>
<div>{{ taxPaidGes ?? '...' }} $KRK</div>
@ -50,7 +50,7 @@
</div>
<div class="profit-stats-item profit-stats-total">
<div><b>Total</b></div>
<div>{{ total.toFixed(5) }} $KRK</div>
<div>{{ taxPaidGes !== undefined && profit !== undefined ? total.toFixed(5) : '...' }} $KRK</div>
</div>
</div>
</div>
@ -334,6 +334,7 @@ onMounted(() => {
padding-top: 2px
.collapsed-body--error
display: flex
flex-wrap: wrap
align-items: center
gap: 8px
color: #f87171