From 8af818107bc4679a6e9e90402953dfadab146704 Mon Sep 17 00:00:00 2001 From: ridel1e Date: Wed, 29 Nov 2023 18:12:58 +0300 Subject: [PATCH] update remove functionality #2 --- src/pages/RemoveLiquidity/RemoveLiquidity.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/RemoveLiquidity/RemoveLiquidity.tsx b/src/pages/RemoveLiquidity/RemoveLiquidity.tsx index 37dd9ec09..ea916d688 100644 --- a/src/pages/RemoveLiquidity/RemoveLiquidity.tsx +++ b/src/pages/RemoveLiquidity/RemoveLiquidity.tsx @@ -3,7 +3,7 @@ import { Flex, Form, FormGroup, Skeleton, useForm } from '@ergolabs/ui-kit'; import { t, Trans } from '@lingui/macro'; import { FC } from 'react'; import { useNavigate } from 'react-router-dom'; -import { first, skip } from 'rxjs'; +import { first } from 'rxjs'; import { useObservable, @@ -65,7 +65,7 @@ export const RemoveLiquidity: FC = () => { const [formValue] = useObservable(form.valueChangesWithSilent$); useSubscription( - form.controls.percent.valueChanges$.pipe(skip(1)), + form.controls.percent.valueChanges$, (percent) => { if (!position) { return;