Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
luistorres committed May 21, 2024
1 parent 36081e1 commit 17da146
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/web-app/app/_providers/persist-query-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ import { hashFn } from 'wagmi/query';

const oneMinute = 1_000 * 60;
const oneHour = oneMinute * 60;
const tenMinutes = oneMinute * 10;

const queryClient = new QueryClient({
defaultOptions: {
queries: {
queryKeyHashFn: hashFn,
retry: 0,
staleTime: tenMinutes,
staleTime: oneMinute,
gcTime: oneHour,
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app/app/_server/can-contribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const canContribute = async (project: string, address: string) => {
.from('applications')
.select('*')
.eq('project', project)
.eq('address', address);
.ilike('address', `%${address}%`);

if (error) {
console.error(error);
Expand Down
6 changes: 5 additions & 1 deletion packages/web-app/app/_server/idos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
evmGranteePublicKey,
} from '../wallet';
import { createClient } from '../supabase/server';
import { compareAddresses } from '@/app/_lib/utils';

export interface idOSGrant {
content: string;
Expand Down Expand Up @@ -143,7 +144,10 @@ export const updateAllowedProjectApplicants = async (

// remove already allowed addresses
const addresses = parsedApplicants.filter(
(address) => !currentAllowedList.includes(address),
(address) =>
!currentAllowedList.some((allowed) =>
compareAddresses(allowed, address),
),
);

console.log('==>Current Applicants', parsedApplicants.length);
Expand Down

0 comments on commit 17da146

Please sign in to comment.