Skip to content

Commit

Permalink
[Issue-209] [update] Mythical_Telegram_App - Research and support som…
Browse files Browse the repository at this point in the history
…e task related NFL Rivals Game
  • Loading branch information
Thiendekaco committed Dec 19, 2024
1 parent 4c634a1 commit ce7c73d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ const Component = ({ accountInfo,
await new Promise((resolve) => setTimeout(resolve, 3000));
}, [navigate]);

const handleCheckBalanceAction = useCallback(async (taskId?: number) => {
const handleCheckAchievementAction = useCallback(async (taskId?: number) => {
if (!taskId) {
return;
}
Expand Down Expand Up @@ -332,8 +332,8 @@ const Component = ({ accountInfo,
await handleDirectAction(action as TaskActionDirect);
} else if (actionType === TaskActionComponent.SHARE) {
await handleShareAction(action as TaskActionShare);
} else if (actionType === TaskActionComponent.CHECK_BALANCE) {
await handleCheckBalanceAction(taskId);
} else if ([TaskActionComponent.CHECK_BALANCE, TaskActionComponent.CHECK_ACCOUNT_NFL_LEVEL, TaskActionComponent.CHECK_CARD].includes(actionType)) {
await handleCheckAchievementAction(taskId);
}

// Finish the task
Expand All @@ -342,7 +342,7 @@ const Component = ({ accountInfo,
networkKey
};
})();
}, [handleDirectAction, handleOnChainAction, handleOpenScreenAction, handleShareAction, handleUrlAction, handleCheckBalanceAction]);
}, [handleDirectAction, handleOnChainAction, handleOpenScreenAction, handleShareAction, handleUrlAction, handleCheckAchievementAction]);

const doTaskAction = useCallback((task: Task) => {
const action = task.action;
Expand Down

0 comments on commit ce7c73d

Please sign in to comment.