Skip to content

Commit

Permalink
feat(quest-ui): remove no longer needed prop for playstreak sync (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliobricenov authored Oct 18, 2024
1 parent b90372c commit f08cc31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperplay/quests-ui",
"version": "0.0.27",
"version": "0.0.28",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 2 additions & 8 deletions src/components/QuestDetailsWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export interface QuestDetailsWrapperProps {
) => Promise<RewardClaimSignature>
getPendingExternalSync: (questId: number) => Promise<boolean>
confirmRewardClaim: (params: ConfirmClaimParams) => Promise<void>
questsWithExternalPlayStreakSync: number[]
syncPlayStreakWithExternalSource: (questId: number) => Promise<unknown>
resyncExternalTask: (rewardId: string) => Promise<void>
getExternalTaskCredits: (rewardId: string) => Promise<string>
Expand Down Expand Up @@ -113,8 +112,7 @@ export function QuestDetailsWrapper({
sessionEmail,
checkG7ConnectionStatus,
isQuestsPage,
syncPlayStreakWithExternalSource,
questsWithExternalPlayStreakSync
syncPlayStreakWithExternalSource
}: QuestDetailsWrapperProps) {
const [syncSuccess, setSyncSuccess] = useState(false)
const rewardTypeClaimEnabled = flags.rewardTypeClaimEnabled
Expand Down Expand Up @@ -187,11 +185,7 @@ export function QuestDetailsWrapper({

let streakRightSection = null

if (
selectedQuestId &&
questsWithExternalPlayStreakSync.includes(selectedQuestId) &&
hasPendingExternalSync
) {
if (hasPendingExternalSync) {
streakRightSection = (
<Button
disabled={syncWithExternalSourceMutation.isPending}
Expand Down

0 comments on commit f08cc31

Please sign in to comment.