From 161cd258f37926b3bef62d32d87a355f4a61f384 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Wed, 27 May 2026 13:12:59 +0200 Subject: [PATCH] show null billable rate as empty not as 0 to avoid confusion --- resources/js/packages/ui/src/Input/BillableRateInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/packages/ui/src/Input/BillableRateInput.vue b/resources/js/packages/ui/src/Input/BillableRateInput.vue index a87a9f50..ff39ac49 100644 --- a/resources/js/packages/ui/src/Input/BillableRateInput.vue +++ b/resources/js/packages/ui/src/Input/BillableRateInput.vue @@ -24,7 +24,7 @@ const billableRateInput = ref(null); useFocus(billableRateInput, { initialValue: props.focus }); function formatValue(modelValue: number | null) { - return modelValue ? modelValue / 100 : 0; + return modelValue ? modelValue / 100 : null; } @@ -43,7 +43,7 @@ function formatValue(modelValue: number | null) { currencyDisplay: 'code', currencySign: 'accounting', }" - @update:model-value="(value) => (model = value * 100)"> + @update:model-value="(value) => (model = value ? value * 100 : null)">