Skip to content

Commit

Permalink
Fix copy-paste typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinAlpert committed May 9, 2024
1 parent 832e31e commit 9dd074d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/apps/web/src/components/NumericInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const NumericInput: React.FC<NumericInputProps> = ({ value, isCurrency, o
const propagateChange = () => {
const parsedValue = parseAbrechnungFloat(internalValue);
if (!isNaN(parsedValue)) {
setInternalValue(isCurrency ? value.toFixed(2) : String(value));
setInternalValue(isCurrency ? parsedValue.toFixed(2) : String(parsedValue));
onChange(parsedValue);
}
};
Expand Down

0 comments on commit 9dd074d

Please sign in to comment.