Skip to content

Commit

Permalink
fix: add network id as dependency of useQueries
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Oct 18, 2024
1 parent 54bb6a7 commit 42bfdd4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/screens/LaunchpadERC20/hooks/useLastAirdrops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { extractGnoJSONString } from "@/utils/gno";
import { zodAidrop } from "@/utils/types/types";

export const useLastAirdrops = (networkId: string) => {
return useQuery(["lastAirdrops"], async () => {
return useQuery(["lastAirdrops", networkId], async () => {
const gnoNetwork = getGnoNetwork(networkId);
if (!gnoNetwork) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion packages/screens/LaunchpadERC20/hooks/useLastSales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { extractGnoJSONString } from "@/utils/gno";
import { zodSale } from "@/utils/types/types";

export const useLastSales = (networkId: string) => {
return useQuery(["lastSales"], async () => {
return useQuery(["lastSales", networkId], async () => {
const gnoNetwork = getGnoNetwork(networkId);
if (!gnoNetwork) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion packages/screens/LaunchpadERC20/hooks/useLastTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { extractGnoJSONString } from "@/utils/gno";
import { zodToken } from "@/utils/types/types";

export const useLastTokens = (networkId: string) => {
return useQuery(["lastTokens"], async () => {
return useQuery(["lastTokens", networkId], async () => {
const gnoNetwork = getGnoNetwork(networkId);
if (!gnoNetwork) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion packages/screens/LaunchpadERC20/hooks/useUserTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { extractGnoJSONString } from "@/utils/gno";
import { zodToken } from "@/utils/types/types";

export const useUserTokens = (networkId: string, addr: string) => {
return useQuery(["userTokens", addr], async () => {
return useQuery(["userTokens", addr, networkId], async () => {
const gnoNetwork = getGnoNetwork(networkId);
if (!gnoNetwork) {
return null;
Expand Down

0 comments on commit 42bfdd4

Please sign in to comment.