From 6d196ffe8761dc21cf1ebc7a0f5a588d0587affe Mon Sep 17 00:00:00 2001 From: "tai.truong" Date: Mon, 16 Sep 2024 11:07:03 +0700 Subject: [PATCH] fix: MET-1667 improve search --- src/components/StakingLifeCycleSearch/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/StakingLifeCycleSearch/index.tsx b/src/components/StakingLifeCycleSearch/index.tsx index a2209da737..30365c74e2 100644 --- a/src/components/StakingLifeCycleSearch/index.tsx +++ b/src/components/StakingLifeCycleSearch/index.tsx @@ -189,8 +189,8 @@ const StakingLifeCycleSearch = () => { const hanldeSearch = async () => { if (!value) return; - setValueSearch(value); - const data = await adaHandleSearch(value); + setValueSearch(value.trim()); + const data = await adaHandleSearch(value.trim()); if (data.stakeAddress) { setADAHanlde(data); }