Skip to content

Commit

Permalink
fix: MET-1960 show pool retired
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TaiTruong committed Mar 26, 2024
1 parent 6e40487 commit 9a98550
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DelegationPool/DelegationList/index.tsx
Expand Up @@ -34,10 +34,11 @@ const DelegationLists: React.FC = () => {
const [value, setValue] = useState("");
const [search, setSearch] = useState(decodeURIComponent(tickerNameSearch));
const { pageInfo, setSort } = usePageInfo();
const [isShowRetired, setIsRetired] = useState(!!pageInfo.retired);
const [isShowRetired, setIsRetired] = useState(/^true$/i.test(pageInfo.retired));

const tableRef = useRef<HTMLDivElement>(null);
const blockKey = useSelector(({ system }: RootState) => system.blockKey);

useEffect(() => {
if (tickerNameSearch !== search) history.replace({ search: stringify({ ...pageInfo, page: 1 }) });
if (tickerNameSearch) {
Expand Down

0 comments on commit 9a98550

Please sign in to comment.