Skip to content

Commit

Permalink
added last code
Browse files Browse the repository at this point in the history
  • Loading branch information
rubelux committed Oct 9, 2023
1 parent 8e577b7 commit c00cafb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ArtifactRaised.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { palette, typography } from '@theme'

//NEXT_PUBLIC_BASE_ARTIFACT_PRICE

const ArtifactCount = ({
const ArtifactRaised = ({
count,
totalSales,
matchFundPooled,
Expand Down Expand Up @@ -93,4 +93,4 @@ const AmountText = styled.span`
//color="barracuda" darkColor="barracuda"
`

export default ArtifactCount
export default ArtifactRaised
3 changes: 3 additions & 0 deletions src/lib/useSeasonSubscriptionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export function useSeasonSubscriptionData() {
order_by: { submissions_aggregate: { count: 'asc' } },
},
onData: ({ data: { data, loading, error } }) => {
console.log('useSubscription data in ondata', data)
console.log('useSubscription loading in ondata', loading)
console.log('useSubscription error in ondata', error)
if (!loading && !error && data?.Seasons[0]) {
const arrangedSeasonList = arrangeSubmissions(data?.Seasons[0].submissions)
const totalSales = countTotalSales(data?.Seasons[0].submissions)
Expand Down
1 change: 1 addition & 0 deletions src/pages/project/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const ProjectPage = ({ project }: any) => {
const { setVisibleModalWithAttrs } = useContext(LayoutContext)

console.log('seasonData ', seasonData)
console.log('loadingSeason ', loadingSeason)

//this should be only done when the season is active otherwise we should use the season from the project
const { data: openEditionsSub } = useSubscription<IOpenEditionsSubscription>(SUBSCRIBE_OPEN_EDITIONS, {
Expand Down

0 comments on commit c00cafb

Please sign in to comment.