Skip to content

Commit

Permalink
chore: fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nikaaru committed Jan 10, 2024
1 parent b9794d5 commit 908710e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ function Search(props: PropsType) {
const { status } = props;
const router = useRouter();
const { query, page } = router.query;
let { data } = useSWR([query, page], getWalletSwaps);
data = null;
const { data } = useSWR([query, page], getWalletSwaps);
const { transactions, total } = data || {};

return status || (data && data?.hasError) ? (
Expand Down

0 comments on commit 908710e

Please sign in to comment.