Skip to content

Commit

Permalink
feat(db): update allowlist query (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeckers authored Aug 29, 2023
1 parent f757e88 commit f6d8d84
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/hooks/mintFractionAllowlistBatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { mintInteractionLabels } from "../content/chainInteractions";
import { SUPABASE_TABLE } from "../lib/config";
import { useParseBlockchainError } from "../lib/parse-blockchain-error";
import { supabase } from "../lib/supabase-client";
import { ClaimProof, useVerifyFractionClaim } from "./verifyFractionClaim";
import { HexString } from "../types/web3";
import { useAccountLowerCase } from "./account";
import { useQuery } from "@tanstack/react-query";
import { toast } from "react-toastify";
import { useHypercertClient } from "./hypercerts-client";
import { useState } from "react";
import { ClaimProof, useVerifyFractionClaim } from "./verifyFractionClaim";
import { useQuery } from "@tanstack/react-query";
import _ from "lodash";
import { useState } from "react";
import { toast } from "react-toastify";

export const useMintFractionAllowlistBatch = ({
onComplete,
Expand Down Expand Up @@ -116,7 +116,8 @@ export const useGetAllEligibility = (address: string) => {
const { data, error } = await supabase
.from(SUPABASE_TABLE)
.select("*")
.eq("address", address.toLowerCase());
.eq("address", address.toLowerCase())
.eq("hidden", false);
if (error) {
console.error("Supabase error:");
console.error(error);
Expand Down

0 comments on commit f6d8d84

Please sign in to comment.