Skip to content

Commit

Permalink
Misc first weekly comment challenge fixes (#11501)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Mar 4, 2025
1 parent e0320a3 commit 09c6315
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-avocados-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@audius/sdk": patch
---

Add c challenge
1 change: 0 additions & 1 deletion packages/common/src/utils/challenges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ export const getChallengeStatusLabel = (
if (shouldShowReset) {
return 'Resets Friday'
}
return DEFAULT_STATUS_LABELS.AVAILABLE
}

// Handle claimable state for non-aggregate rewards
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/src/sdk/api/challenges/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export enum ChallengeId {
TRENDING_TRACK = 'tt',
TRENDING_PLAYLIST = 'tp',
TRENDING_UNDERGROUND_TRACK = 'tut',
ONE_SHOT = 'o'
ONE_SHOT = 'o',
FIRST_WEEKLY_COMMENT = 'c'
}

const DefaultSpecifier = z.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
musicConfettiActions
} from '@audius/common/store'
import { getAAOErrorEmojis } from '@audius/common/utils'
import { ModalContent } from '@audius/harmony'
import { ModalContent, Text } from '@audius/harmony'
import { useDispatch, useSelector } from 'react-redux'

import { useModalState } from 'common/hooks/useModalState'
Expand Down Expand Up @@ -100,7 +100,7 @@ const ChallengeRewardsBody = ({ dismissModal }: BodyProps) => {

const errorContent =
claimStatus === ClaimStatus.ERROR ? (
<div className={styles.claimError}>{getErrorMessage(aaoErrorCode)}</div>
<Text>{getErrorMessage(aaoErrorCode)}</Text>
) : null

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@audius/common/models'
import { audioRewardsPageActions } from '@audius/common/store'
import { getClaimableChallengeSpecifiers } from '@audius/common/utils'
import { Button, IconCheck } from '@audius/harmony'
import { Button, IconArrowRight } from '@audius/harmony'
import { useDispatch } from 'react-redux'

const { claimChallengeReward } = audioRewardsPageActions
Expand Down Expand Up @@ -65,7 +65,7 @@ export const ClaimButton = ({
<Button
variant='primary'
isLoading={claimInProgress}
iconRight={IconCheck}
iconRight={IconArrowRight}
onClick={onClaimRewardClicked}
fullWidth
>
Expand Down

0 comments on commit 09c6315

Please sign in to comment.