Skip to content

Commit

Permalink
fix(ceremony): use correct id
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Sep 6, 2024
1 parent 1df7559 commit a61a09a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ceremony/src/lib/supabase/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const getUserQueueInfo = async () => {
throw new Error("User is not logged in")
}

const { data, count, error } = await getUserQueuePosition("73073266-b790-4de1-b2e1-3176c20c3f76")
const { data, count, error } = await getUserQueuePosition(userId)

if (error) {
console.error("Error getting user queue position:", error)
Expand Down Expand Up @@ -42,9 +42,9 @@ export const checkContributionStatus = async (): Promise<ContributionStatus> =>

try {
const [contributor, submittedContribution, verifiedContribution] = await Promise.all([
getContributor("73073266-b790-4de1-b2e1-3176c20c3f76"),
getSubmittedContribution("73073266-b790-4de1-b2e1-3176c20c3f76"),
getContribution("73073266-b790-4de1-b2e1-3176c20c3f76")
getContributor(userId),
getSubmittedContribution(userId),
getContribution(userId)
])

const isContributor = !!contributor?.data
Expand Down

0 comments on commit a61a09a

Please sign in to comment.