Skip to content

Commit

Permalink
fix: user performance query bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasDeco committed Aug 2, 2024
1 parent 1a32647 commit e4bed4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/indexer/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export class FutarchyIndexerUserClient implements FutarchyUserClient {
})
.reduce((where, field) => {
const [key, val] = field;
if (key === "userAcct" && val instanceof PublicKey) {
if (key === "userAcct" && val && typeof val === "object") {
where.user_acct = { _eq: val.toBase58() };
}
if (key === "proposalAcct" && val instanceof PublicKey) {
if (key === "proposalAcct" && val && typeof val === "object") {
where.proposal_acct = { _eq: val.toBase58() };
}
if (key === "daoSlug" && typeof val === "string") {
Expand Down

0 comments on commit e4bed4d

Please sign in to comment.