File tree 1 file changed +8
-2
lines changed
packages/frontend/src/components/Lp/MintAndLp
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,12 @@ const LpSettings: React.FC<{ onComplete: () => void; squeethToMint: string }> =
147
147
const collatRatioVal = new BigNumber ( collatRatio ) . div ( 100 ) . toNumber ( )
148
148
const slippageAmountVal = new BigNumber ( slippageAmount ) . div ( 100 ) . toNumber ( )
149
149
150
+ const handleUniswapNftAsCollatToggle = ( value : any ) => {
151
+ if ( value !== null ) {
152
+ setUsingUniswapNftAsCollat ( value )
153
+ }
154
+ }
155
+
150
156
useAppEffect ( ( ) => {
151
157
if ( usingDefaultPriceRange ) {
152
158
setLowerTick ( TickMath . MIN_TICK )
@@ -285,9 +291,9 @@ const LpSettings: React.FC<{ onComplete: () => void; squeethToMint: string }> =
285
291
286
292
< ToggleButtonGroup
287
293
size = "medium"
288
- value = { usingUniswapNftAsCollat }
289
- onChange = { ( e , value ) => setUsingUniswapNftAsCollat ( value ) }
290
294
exclusive
295
+ value = { usingUniswapNftAsCollat }
296
+ onChange = { ( event , value ) => handleUniswapNftAsCollatToggle ( value ) }
291
297
>
292
298
< ToggleButton classes = { toggleButtonClasses } value = { true } >
293
299
Yes
You can’t perform that action at this time.
0 commit comments