Skip to content

Commit a1bf689

Browse files
authored
Merge pull request code-dot-org#26694 from code-dot-org/allow-zeros-in-percent-fields
allow zeros in percent fields
2 parents c337808 + 1f159a8 commit a1bf689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/src/code-studio/pd/application/principalApproval1920/PrincipalApproval1920Component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export default class PrincipalApproval1920Component extends LabeledFormComponent
354354
// Sanitize numeric fields (necessary for older browsers that don't
355355
// automatically enforce numeric inputs)
356356
['freeLunchPercent', ...RACE_LIST].forEach((field) => {
357-
changes[field] = parseFloat(data[field]);
357+
changes[field] = parseFloat(data[field]).toString();
358358
});
359359

360360
return changes;

0 commit comments

Comments
 (0)