diff --git a/src/components/atoms/KeyValuePair.tsx b/src/components/atoms/KeyValuePair.tsx index d42ffe6f..a681b782 100644 --- a/src/components/atoms/KeyValuePair.tsx +++ b/src/components/atoms/KeyValuePair.tsx @@ -6,9 +6,9 @@ interface KeyValueFormProps { valueLabel?: string; } -export const KeyValuePair = forwardRef(({keyLabel, valueLabel}: KeyValueFormProps, ref) => { +export const KeyValuePair = forwardRef(({ keyLabel, valueLabel }: KeyValueFormProps, ref) => { const [key, setKey] = React.useState(''); - const [value, setValue] = React.useState(''); + const [value, setValue] = React.useState(''); useImperativeHandle(ref, () => ({ getKeyValuePair() { return { key, value }; @@ -37,7 +37,7 @@ export const KeyValuePair = forwardRef(({keyLabel, valueLabel}: KeyValueFormProp value={value} onChange={(event: React.ChangeEvent) => { const num = Number(event.target.value); - if (isNaN(num)){ + if (isNaN(num)) { setValue(event.target.value); } else {