fix: wrong value set

This commit is contained in:
Methapon2001 2025-01-30 15:00:00 +07:00
parent ae88440870
commit 7511823e88

View file

@ -341,7 +341,9 @@ withDefaults(
:model-value="formattedAgentPrice"
@blur="
() => {
agentPrice = Number(formattedPrice.replace(/,/g, ''));
agentPrice = Number(
formattedAgentPrice.replace(/,/g, ''),
);
if (
agentPrice % 1 === 0 &&
!formattedAgentPrice.split('.').at(1)