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:
parent
cfe113b1a0
commit
bcebbd47c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue