diff --git a/web-app/src/components/collapse/CollapseActive.vue b/web-app/src/components/collapse/CollapseActive.vue
index dd7798e..bbeb8a3 100644
--- a/web-app/src/components/collapse/CollapseActive.vue
+++ b/web-app/src/components/collapse/CollapseActive.vue
@@ -50,7 +50,7 @@
Total
-
{{ taxPaidGes !== undefined && profit !== undefined ? formatTokenAmount(total) : '...' }} $KRK
+
{{ total !== undefined ? formatTokenAmount(total) : '...' }} $KRK
@@ -132,7 +132,10 @@ const tag = computed(() => {
return '';
});
-const total = computed(() => props.amount + (profit.value ?? 0) - (taxPaidGes.value ?? 0));
+const total = computed(() => {
+ if (profit.value === undefined || taxPaidGes.value === undefined) return undefined;
+ return props.amount + profit.value - taxPaidGes.value;
+});
// P&L calculations (FIXED: Use BigInt math to preserve precision)
const grossReturn = computed(() => {