Skip to content

Commit

Permalink
OPHY-659: Allow only integer money inputs for fields with type "fixed…
Browse files Browse the repository at this point in the history
…MultiplierMoneyField"
  • Loading branch information
anttu committed Jan 2, 2024
1 parent d4c3214 commit 674eadc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class BudgetEditFormController {
}

componentOnChangeListener(field, newValue) {
if (field.fieldType !== 'moneyField') {
if (field.fieldType !== 'moneyField' && field.fieldType !== 'fixedMultiplierMoneyField') {
this.overrideAnswerValue(field, newValue)
} else {
const valueOrZero = Boolean(newValue) ? newValue : 0
Expand Down

0 comments on commit 674eadc

Please sign in to comment.