We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 592057b commit 5ae612bCopy full SHA for 5ae612b
packages/neuron-ui/src/components/DepositDialog/index.tsx
@@ -117,6 +117,8 @@ const DepositDialog = ({
117
setIsTyping(true)
118
}, [setIsTyping])
119
120
+ const inputValue = useMemo(() => maxDepositValue ?? depositValue, [maxDepositValue, depositValue])
121
+
122
return (
123
<Dialog
124
show={show}
@@ -160,7 +162,7 @@ const DepositDialog = ({
160
162
className={styles.depositValue}
161
163
width="100%"
164
field="depositValue"
- value={isTyping ? maxDepositValue ?? depositValue : localNumberFormatter(maxDepositValue ?? depositValue)}
165
+ value={isTyping ? inputValue : localNumberFormatter(inputValue)}
166
onChange={onChangeDepositValue}
167
onBlur={handleBlur}
168
onFocus={handleFocus}
0 commit comments