Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1810 usdglo token #4795

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
8 changes: 4 additions & 4 deletions src/apollo/gql/gqlProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ export const FETCH_PROJECT_BY_SLUG_DONATION = gql`
slug
descriptionSummary
verified
isGivbackEligible
totalDonations
isGivbackEligible
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Missing isGivbackEligible in FETCH_PROJECT_BY_SLUG_DONATION Query

The isGivbackEligible field is not present in the FETCH_PROJECT_BY_SLUG_DONATION query as expected. Please ensure that this field is included and correctly handled in the frontend components consuming this query.

🔗 Analysis chain

Ensure consistent inclusion of isGivbackEligible in queries.

The isGivbackEligible field has been re-added to the FETCH_PROJECT_BY_SLUG_DONATION query. Please verify that this field is necessary for the donation flow and that it is correctly handled in the frontend components consuming this query.

To confirm consistent usage of isGivbackEligible across the codebase, you can run the following script:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Find all occurrences of `isGivbackEligible` in GraphQL queries and their usage in the codebase.

# Search for the field in GraphQL query files.
rg --type ts 'isGivbackEligible' src/apollo/gql/

# Search for components using the `FETCH_PROJECT_BY_SLUG_DONATION` query.
rg --type ts 'FETCH_PROJECT_BY_SLUG_DONATION' src/

Length of output: 984


Script:

#!/bin/bash
# Description: Verify the inclusion of `isGivbackEligible` in the `FETCH_PROJECT_BY_SLUG_DONATION` GraphQL query.

# Use ast-grep to search for the `isGivbackEligible` field within the `FETCH_PROJECT_BY_SLUG_DONATION` query in gqlProjects.ts
ast-grep --lang javascript --pattern $'export const FETCH_PROJECT_BY_SLUG_DONATION = gql`$\n  query FetchProjectBySlugDonation($_: String!) {$$\n    project($_: $_) {$$\n      $$$\n      isGivbackEligible\n      $$$\n    }$$\n  }$$`' src/apollo/gql/gqlProjects.ts

Length of output: 257

sumDonationValueUsdForActiveQfRound
countUniqueDonorsForActiveQfRound
categories {
Expand Down Expand Up @@ -213,8 +213,8 @@ export const FETCH_PROJECT_BY_SLUG_SINGLE_PROJECT = gql`
image
slug
verified
isGivbackEligible
totalDonations
isGivbackEligible
description
addresses {
address
Expand Down Expand Up @@ -598,8 +598,8 @@ export const ADD_RECIPIENT_ADDRESS_TO_PROJECT = gql`
listed
reviewStatus
verified
isGivbackEligible
slugHistory
isGivbackEligible
creationDate
adminUserId
walletAddress
Expand Down Expand Up @@ -689,8 +689,8 @@ export const PROJECT_ACCEPTED_TOKENS = gql`
name
decimals
mainnetAddress
isGivbackEligible
order
isGivbackEligible
isStableCoin
coingeckoId
isQR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ const SelectTokenInnerModal: FC<ISelectTokenModalProps> = ({
},
);

console.log('token', tokens);

return (
<>
<Wrapper>
Expand All @@ -129,6 +131,11 @@ const SelectTokenInnerModal: FC<ISelectTokenModalProps> = ({
const token = superTokens.find(
token => token.id === tokenId,
) as IToken;
if (!token?.symbol) {
console.log('token', token);
return;
}

return token ? (
<StreamInfo
key={tokenId}
Expand Down
Loading