Skip to content

Commit 9d90c28

Browse files
committed
Fixed need to type decimal point twice issue
1 parent 46e1fbd commit 9d90c28

File tree

1 file changed

+2
-1
lines changed
  • packages/react-sdk-components/src/components/field/Currency

1 file changed

+2
-1
lines changed

packages/react-sdk-components/src/components/field/Currency/Currency.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ export default function Currency(props) {
7474
return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} variant='stacked' />;
7575
}
7676

77+
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
7778
function currOnChange(event, inValue) {
7879
// console.log(`Currency currOnChange inValue: ${inValue}`);
7980

8081
// update internal value
81-
setCurrValue(inValue);
82+
setCurrValue(event?.target?.value);
8283
}
8384

8485
function currOnBlur(event, inValue) {

0 commit comments

Comments
 (0)