Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bend-n committed May 21, 2024
1 parent 3f9bcec commit 5f2993e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/evm/contracts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function EvmContracts() {
// },
];
const result = get_evm_contracts();
let filter = useSearchParams().get("filter");
let [page, setPage] = useState(1);
let [theme] = useThemeState();
let data: Contract[];
Expand All @@ -96,7 +97,6 @@ function EvmContracts() {
case "ok":
data = result.data;
}
let filter = useSearchParams().get("filter");
if (filter) {
data = data.filter((x) => x.type == filter);
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/ImportToken.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Type } from "@/graphql/types";
import { CheckCircle, Import, XCircle } from "lucide-react";
import { useState } from "react";

Expand All @@ -8,7 +9,7 @@ declare global {
}
interface Contract {
id: string,
type: "Native" | "ERC20" | "ERC721" | "ERC1155" | "SRC20" | "SRC721" | "SRC1155";
type: Type;
symbol: string,
}

Expand Down

0 comments on commit 5f2993e

Please sign in to comment.