mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 08:12:17 +01:00
show null billable rate as empty not as 0 to avoid confusion
This commit is contained in:
committed by
Constantin Graf
parent
d6ed3fb3fc
commit
161cd258f3
@@ -24,7 +24,7 @@ const billableRateInput = ref<HTMLInputElement | null>(null);
|
||||
useFocus(billableRateInput, { initialValue: props.focus });
|
||||
|
||||
function formatValue(modelValue: number | null) {
|
||||
return modelValue ? modelValue / 100 : 0;
|
||||
return modelValue ? modelValue / 100 : null;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -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)">
|
||||
<NumberFieldContent>
|
||||
<NumberFieldDecrement />
|
||||
<NumberFieldInput placeholder="Billable Rate" />
|
||||
|
||||
Reference in New Issue
Block a user