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:
parent
c0e1079006
commit
f8baa02efc
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue