Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export function Search() {

const pathName = usePathname();

const containerComponentRef = useRef();
const handleOutsideClick = () => {
setShowSearchWindow(false);
};
Expand All @@ -61,10 +60,8 @@ export function Search() {
setLoadingMainnetResults(true);
setLoadingTestnetResults(true);

console.log("fetching search results");

const reqMainnet = fetch(
`123/api/search/contracts?network=mainnet&query=${query}&offset=${offset}&limit=${limit}`
`api/search/contracts?network=mainnet&query=${query}&offset=${offset}&limit=${limit}`
)
.then((res) => res.json())
.then((res) => {
Expand All @@ -73,7 +70,7 @@ export function Search() {
});

const reqTestnet = fetch(
`123/api/search/contracts?network=testnet&query=${query}&offset=${offset}&limit=${limit}`
`api/search/contracts?network=testnet&query=${query}&offset=${offset}&limit=${limit}`
)
.then((res) => res.json())
.then((res) => {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"dev:testnet:deploy": "flow project deploy --network=testnet --update && cross-env NEXT_PUBLIC_FLOW_NETWORK=testnet next dev",
"dev:testnet:update": "flow project deploy --network=testnet --update --show-diff",
"dev:mainnet": "cross-env NEXT_PUBLIC_FLOW_NETWORK=mainnet next dev",
"flow:dev": "flow dev",
"flow:emulator": "flow emulator",
"flow:dev-wallet": "flow dev-wallet",
"test": "jest",
Expand Down