fix: \taxDue\ ref lacks null guard before bigint arithmetic (#329)

Initialize taxDue as ref<bigint>(0n) instead of ref<bigint>() 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 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-02-28 13:51:04 +00:00
parent cfe113b1a0
commit bcebbd47c9

View file

@ -113,7 +113,7 @@ const props = defineProps<{
const showTaxMenu = ref(false);
const newTaxRateIndex = ref<number | null>(null);
const taxDue = ref<bigint>();
const taxDue = ref<bigint>(0n);
const taxPaidGes = ref<number>();
const profit = ref<number>();
const loading = ref<boolean>(false);