Skip to content

Commit

Permalink
feat: update graph
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 23, 2024
1 parent dc8d04f commit 6f18cfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/mint-sbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const getUserCourseInfo = async (courseId, needClaimId) => {
if (bindWallet) {
const tokenInfo = await userTokenInfo(bindWallet);
const curTokenInfo = get(tokenInfo, "user.created", []).find(
item => item.id === needClaimId + "",
item => item.soulId === needClaimId + "",
);
const hasClaimed = !!curTokenInfo;
const donationAmount = get(curTokenInfo, "creator.amount", 0);
Expand Down Expand Up @@ -47,12 +47,12 @@ export const userTokenInfo = async address => {
query getTokenInfo($address: String!) {
user(id: $address) {
created {
id
soulId
creator {
amount
}
}
amount
id
}
}
`;
Expand Down

0 comments on commit 6f18cfa

Please sign in to comment.