From bcebbd47c95980a2d791d0eb243214c074a119d2 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 28 Feb 2026 13:51:04 +0000 Subject: [PATCH] fix: \`taxDue\` ref lacks null guard before bigint arithmetic (#329) Initialize taxDue as ref(0n) instead of ref() so the type is always bigint, eliminating the undefined in the Ref type and making the bigint addition at line 219 type-safe without a null guard. Co-Authored-By: Claude Sonnet 4.6 --- web-app/src/components/collapse/CollapseActive.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-app/src/components/collapse/CollapseActive.vue b/web-app/src/components/collapse/CollapseActive.vue index b9f8e9a..9e7cbd6 100644 --- a/web-app/src/components/collapse/CollapseActive.vue +++ b/web-app/src/components/collapse/CollapseActive.vue @@ -113,7 +113,7 @@ const props = defineProps<{ const showTaxMenu = ref(false); const newTaxRateIndex = ref(null); -const taxDue = ref(); +const taxDue = ref(0n); const taxPaidGes = ref(); const profit = ref(); const loading = ref(false);