refactor: handle price 0 baht
This commit is contained in:
parent
c1c814ade2
commit
c7438edd79
3 changed files with 3 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ watch(
|
|||
(newValue) => {
|
||||
if (newValue !== undefined && typeof newValue === 'string') {
|
||||
const numericValue = newValue.replace(/,/g, '');
|
||||
wageRateText.value = ThaiBahtText(numericValue);
|
||||
wageRateText.value = ThaiBahtText(numericValue) || 'ศูนย์บาทถ้วน';
|
||||
wageRate.value = parseFloat(numericValue);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue