payload: {"action":"created","comment":{"url":"https://api.github.com/repos/trackwizz/trackwizz/pulls/comments/361330851","pull_request_review_id":336381132,"id":361330851,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2MTMzMDg1MQ==","diff_hunk":"@@ -0,0 +1,98 @@\n+import React, { useState, useEffect } from \"react\";\n+import dancers from \"../../../../utils/dancers\";\n+import \"./quizz.css\";\n+\n+interface IQuestion {\n+  track: string;\n+  choices: string[];\n+  incrementScore: () => void;\n+  incrementIndex: () => void;\n+}\n+\n+const Question: React.FC<IQuestion> = ({\n+  track,\n+  choices,\n+  incrementScore,\n+  incrementIndex\n+}: IQuestion) => {\n+  const [dancer] = useState<string>(\n+    dancers[Math.floor(Math.random() * dancers.length)]\n+  );\n+  const [remainingTime, setremainingTime] = useState<number>(30);\n+  const [isNextTrackAvailable, setIsNextTrackAvailable] = useState<boolean>(\n+    false\n+  );\n+\n+  useEffect(() => {\n+    setTimeout(() => {\n+      if (remainingTime > 0 && isNextTrackAvailable === false) {\n+        setremainingTime(remainingTime - 1);\n+      }\n+\n+      if (remainingTime === 0) {\n+        handleTimeEnd();\n+      }\n+    }, 1000);\n+  }, [remainingTime]);\n+\n+  const handleAnswer = () => () => {\n+    handleTimeEnd();\n+    // TODO : Request to have the rigth answer ?\n+    const isAnswerTrue = true;\n+\n+    if (isAnswerTrue) {\n+      incrementScore();\n+    }\n+  };\n+\n+  const handleTimeEnd = (): void => {\n+    (document.getElementById(\"player\") as HTMLAudioElement).pause();","path":"frontend/src/pages/Game/Quizz/Question/index.tsx","position":49,"original_position":49,"commit_id":"97c5edbf4fb7b29d7b268503fc13150ea5e1fd18","original_commit_id":"97c5edbf4fb7b29d7b268503fc13150ea5e1fd18","user":{"login":"2016floreza","id":34920058,"node_id":"MDQ6VXNlcjM0OTIwMDU4","avatar_url":"https://avatars0.githubusercontent.com/u/34920058?v=4","gravatar_id":"","url":"https://api.github.com/users/2016floreza","html_url":"https://github.com/2016floreza","followers_url":"https://api.github.com/users/2016floreza/followers","following_url":"https://api.github.com/users/2016floreza/following{/other_user}","gists_url":"https://api.github.com/users/2016floreza/gists{/gist_id}","starred_url":"https://api.github.com/users/2016floreza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2016floreza/subscriptions","organizations_url":"https://api.github.com/users/2016floreza/orgs","repos_url":"https://api.github.com/users/2016floreza/repos","events_url":"https://api.github.com/users/2016floreza/events{/privacy}","received_events_url":"https://api.github.com/users/2016floreza/received_events","type":"User","site_admin":false},"body":"Could be q good idea","created_at":"2019-12-25T18:08:35Z","updated_at":"2019-12-25T18:08:35Z","html_url":"https://github.com/trackwizz/trackwizz/pull/15#discussion_r361330851","pull_request_url":"https://api.github.com/repos/trackwizz/trackwizz/pulls/15","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/trackwizz/trackwizz/pulls/comments/361330851"},"html":{"href":"https://github.com/trackwizz/trackwizz/pull/15#discussion_r361330851"},"pull_request":{"href":"https://api.github.com/repos/trackwizz/trackwizz/pulls/15"}},"in_reply_to_id":361328510},"pull_request":{"url":"https://api.github.com/repos/trackwizz/trackwizz/pulls/15","id":356773345,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU2NzczMzQ1","html_url":"https://github.com/trackwizz/trackwizz/pull/15","diff_url":"https://github.com/trackwizz/trackwizz/pull/15.diff","patch_url":"https://github.com/trackwizz/trackwizz/pull/15.patch","issue_url":"https://api.github.com/repos/trackwizz/trackwizz/issues/15","number":15,"state":"open","locked":false,"title":"Score","user":{"login":"2016floreza","id":34920058,"node_id":"MDQ6VXNlcjM0OTIwMDU4","avatar_url":"https://avatars0.githubusercontent.com/u/34920058?v=4","gravatar_id":"","url":"https://api.github.com/users/2016floreza","html_url":"https://github.com/2016floreza","followers_url":"https://api.github.com/users/2016floreza/followers","following_url":"https://api.github.com/users/2016floreza/following{/other_user}","gists_url":"https://api.github.com/users/2016floreza/gists{/gist_id}","starred_url":"https://api.github.com/users/2016floreza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2016floreza/subscriptions","organizations_url":"https://api.github.com/users/2016floreza/orgs","repos_url":"https://api.github.com/users/2016floreza/repos","events_url":"https://api.github.com/users/2016floreza/events{/privacy}","received_events_url":"https://api.github.com/users/2016floreza/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-12-25T09:32:19Z","updated_at":"2019-12-25T18:08:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"385835bc9de3a9471b4711be3334452669c8ecf9","assignee":{"login":"2016floreza","id":34920058,"node_id":"MDQ6VXNlcjM0OTIwMDU4","avatar_url":"https://avatars0.githubusercontent.com/u/34920058?v=4","gravatar_id":"","url":"https://api.github.com/users/2016floreza","html_url":"https://github.com/2016floreza","followers_url":"https://api.github.com/users/2016floreza/followers","following_url":"https://api.github.com/users/2016floreza/following{/other_user}","gists_url":"https://api.github.com/users/2016floreza/gists{/gist_id}","starred_url":"https://api.github.com/users/2016floreza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2016floreza/subscriptions","organizations_url":"https://api.github.com/users/2016floreza/orgs","repos_url":"https://api.github.com/users/2016floreza/repos","events_url":"https://api.github.com/users/2016floreza/events{/privacy}","received_events_url":"https://api.github.com/users/2016floreza/received_events","type":"User","site_admin":false},"assignees":[{"login":"2016floreza","id":34920058,"node_id":"MDQ6VXNlcjM0OTIwMDU4","avatar_url":"https://avatars0.githubusercontent.com/u/34920058?v=4","gravatar_id":"","url":"https://api.github.com/users/2016floreza","html_url":"https://github.com/2016floreza","followers_url":"https://api.github.com/users/2016floreza/followers","following_url":"https://api.github.com/users/2016floreza/following{/other_user}","gists_url":"https://api.github.com/users/2016floreza/gists{/gist_id}","starred_url":"https://api.github.com/users/2016floreza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2016floreza/subscriptions","organizations_url":"https://api.github.com/users/2016floreza/orgs","repos_url":"https://api.github.com/users/2016floreza/repos","events_url":"https://api.github.com/users/2016floreza/events{/privacy}","received_events_url":"https://api.github.com/users/2016floreza/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/trackwizz/trackwizz/pulls/15/commits","review_comments_url":"https://api.github.com/repos/trackwizz/trackwizz/pulls/15/comments","review_comment_url":"https://api.github.com/repos/trackwizz/trackwizz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trackwizz/trackwizz/issues/15/comments","statuses_url":"https://api.github.com/repos/trackwizz/trackwizz/statuses/97c5edbf4fb7b29d7b268503fc13150ea5e1fd18","head":{"label":"trackwizz:score","ref":"score","sha":"97c5edbf4fb7b29d7b268503fc13150ea5e1fd18","user":{"login":"trackwizz","id":58176734,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU4MTc2NzM0","avatar_url":"https://avatars1.githubusercontent.com/u/58176734?v=4","gravatar_id":"","url":"https://api.github.com/users/trackwizz","html_url":"https://github.com/trackwizz","followers_url":"https://api.github.com/users/trackwizz/followers","following_url":"https://api.github.com/users/trackwizz/following{/other_user}","gists_url":"https://api.github.com/users/trackwizz/gists{/gist_id}","starred_url":"https://api.github.com/users/trackwizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trackwizz/subscriptions","organizations_url":"https://api.github.com/users/trackwizz/orgs","repos_url":"https://api.github.com/users/trackwizz/repos","events_url":"https://api.github.com/users/trackwizz/events{/privacy}","received_events_url":"https://api.github.com/users/trackwizz/received_events","type":"Organization","site_admin":false},"repo":{"id":223957169,"node_id":"MDEwOlJlcG9zaXRvcnkyMjM5NTcxNjk=","name":"trackwizz","full_name":"trackwizz/trackwizz","private":false,"owner":{"login":"trackwizz","id":58176734,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU4MTc2NzM0","avatar_url":"https://avatars1.githubusercontent.com/u/58176734?v=4","gravatar_id":"","url":"https://api.github.com/users/trackwizz","html_url":"https://github.com/trackwizz","followers_url":"https://api.github.com/users/trackwizz/followers","following_url":"https://api.github.com/users/trackwizz/following{/other_user}","gists_url":"https://api.github.com/users/trackwizz/gists{/gist_id}","starred_url":"https://api.github.com/users/trackwizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trackwizz/subscriptions","organizations_url":"https://api.github.com/users/trackwizz/orgs","repos_url":"https://api.github.com/users/trackwizz/repos","events_url":"https://api.github.com/users/trackwizz/events{/privacy}","received_events_url":"https://api.github.com/users/trackwizz/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/trackwizz/trackwizz","description":"Blind test application","fork":false,"url":"https://api.github.com/repos/trackwizz/trackwizz","forks_url":"https://api.github.com/repos/trackwizz/trackwizz/forks","keys_url":"https://api.github.com/repos/trackwizz/trackwizz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trackwizz/trackwizz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trackwizz/trackwizz/teams","hooks_url":"https://api.github.com/repos/trackwizz/trackwizz/hooks","issue_events_url":"https://api.github.com/repos/trackwizz/trackwizz/issues/events{/number}","events_url":"https://api.github.com/repos/trackwizz/trackwizz/events","assignees_url":"https://api.github.com/repos/trackwizz/trackwizz/assignees{/user}","branches_url":"https://api.github.com/repos/trackwizz/trackwizz/branches{/branch}","tags_url":"https://api.github.com/repos/trackwizz/trackwizz/tags","blobs_url":"https://api.github.com/repos/trackwizz/trackwizz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trackwizz/trackwizz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trackwizz/trackwizz/git/refs{/sha}","trees_url":"https://api.github.com/repos/trackwizz/trackwizz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trackwizz/trackwizz/statuses/{sha}","languages_url":"https://api.github.com/repos/trackwizz/trackwizz/languages","stargazers_url":"https://api.github.com/repos/trackwizz/trackwizz/stargazers","contributors_url":"https://api.github.com/repos/trackwizz/trackwizz/contributors","subscribers_url":"https://api.github.com/repos/trackwizz/trackwizz/subscribers","subscription_url":"https://api.github.com/repos/trackwizz/trackwizz/subscription","commits_url":"https://api.github.com/repos/trackwizz/trackwizz/commits{/sha}","git_commits_url":"https://api.github.com/repos/trackwizz/trackwizz/git/commits{/sha}","comments_url":"https://api.github.com/repos/trackwizz/trackwizz/comments{/number}","issue_comment_url":"https://api.github.com/repos/trackwizz/trackwizz/issues/comments{/number}","contents_url":"https://api.github.com/repos/trackwizz/trackwizz/contents/{+path}","compare_url":"https://api.github.com/repos/trackwizz/trackwizz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trackwizz/trackwizz/merges","archive_url":"https://api.github.com/repos/trackwizz/trackwizz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trackwizz/trackwizz/downloads","issues_url":"https://api.github.com/repos/trackwizz/trackwizz/issues{/number}","pulls_url":"https://api.github.com/repos/trackwizz/trackwizz/pulls{/number}","milestones_url":"https://api.github.com/repos/trackwizz/trackwizz/milestones{/number}","notifications_url":"https://api.github.com/repos/trackwizz/trackwizz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trackwizz/trackwizz/labels{/name}","releases_url":"https://api.github.com/repos/trackwizz/trackwizz/releases{/id}","deployments_url":"https://api.github.com/repos/trackwizz/trackwizz/deployments","created_at":"2019-11-25T13:38:03Z","updated_at":"2019-12-25T18:05:36Z","pushed_at":"2019-12-25T17:39:29Z","git_url":"git://github.com/trackwizz/trackwizz.git","ssh_url":"git@github.com:trackwizz/trackwizz.git","clone_url":"https://github.com/trackwizz/trackwizz.git","svn_url":"https://github.com/trackwizz/trackwizz","homepage":null,"size":8043,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"trackwizz:master","ref":"master","sha":"587effc85d29f3500ed20ff4430bb8dbbb44ceb4","user":{"login":"trackwizz","id":58176734,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU4MTc2NzM0","avatar_url":"https://avatars1.githubusercontent.com/u/58176734?v=4","gravatar_id":"","url":"https://api.github.com/users/trackwizz","html_url":"https://github.com/trackwizz","followers_url":"https://api.github.com/users/trackwizz/followers","following_url":"https://api.github.com/users/trackwizz/following{/other_user}","gists_url":"https://api.github.com/users/trackwizz/gists{/gist_id}","starred_url":"https://api.github.com/users/trackwizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trackwizz/subscriptions","organizations_url":"https://api.github.com/users/trackwizz/orgs","repos_url":"https://api.github.com/users/trackwizz/repos","events_url":"https://api.github.com/users/trackwizz/events{/privacy}","received_events_url":"https://api.github.com/users/trackwizz/received_events","type":"Organization","site_admin":false},"repo":{"id":223957169,"node_id":"MDEwOlJlcG9zaXRvcnkyMjM5NTcxNjk=","name":"trackwizz","full_name":"trackwizz/trackwizz","private":false,"owner":{"login":"trackwizz","id":58176734,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU4MTc2NzM0","avatar_url":"https://avatars1.githubusercontent.com/u/58176734?v=4","gravatar_id":"","url":"https://api.github.com/users/trackwizz","html_url":"https://github.com/trackwizz","followers_url":"https://api.github.com/users/trackwizz/followers","following_url":"https://api.github.com/users/trackwizz/following{/other_user}","gists_url":"https://api.github.com/users/trackwizz/gists{/gist_id}","starred_url":"https://api.github.com/users/trackwizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trackwizz/subscriptions","organizations_url":"https://api.github.com/users/trackwizz/orgs","repos_url":"https://api.github.com/users/trackwizz/repos","events_url":"https://api.github.com/users/trackwizz/events{/privacy}","received_events_url":"https://api.github.com/users/trackwizz/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/trackwizz/trackwizz","description":"Blind test application","fork":false,"url":"https://api.github.com/repos/trackwizz/trackwizz","forks_url":"https://api.github.com/repos/trackwizz/trackwizz/forks","keys_url":"https://api.github.com/repos/trackwizz/trackwizz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trackwizz/trackwizz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trackwizz/trackwizz/teams","hooks_url":"https://api.github.com/repos/trackwizz/trackwizz/hooks","issue_events_url":"https://api.github.com/repos/trackwizz/trackwizz/issues/events{/number}","events_url":"https://api.github.com/repos/trackwizz/trackwizz/events","assignees_url":"https://api.github.com/repos/trackwizz/trackwizz/assignees{/user}","branches_url":"https://api.github.com/repos/trackwizz/trackwizz/branches{/branch}","tags_url":"https://api.github.com/repos/trackwizz/trackwizz/tags","blobs_url":"https://api.github.com/repos/trackwizz/trackwizz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trackwizz/trackwizz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trackwizz/trackwizz/git/refs{/sha}","trees_url":"https://api.github.com/repos/trackwizz/trackwizz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trackwizz/trackwizz/statuses/{sha}","languages_url":"https://api.github.com/repos/trackwizz/trackwizz/languages","stargazers_url":"https://api.github.com/repos/trackwizz/trackwizz/stargazers","contributors_url":"https://api.github.com/repos/trackwizz/trackwizz/contributors","subscribers_url":"https://api.github.com/repos/trackwizz/trackwizz/subscribers","subscription_url":"https://api.github.com/repos/trackwizz/trackwizz/subscription","commits_url":"https://api.github.com/repos/trackwizz/trackwizz/commits{/sha}","git_commits_url":"https://api.github.com/repos/trackwizz/trackwizz/git/commits{/sha}","comments_url":"https://api.github.com/repos/trackwizz/trackwizz/comments{/number}","issue_comment_url":"https://api.github.com/repos/trackwizz/trackwizz/issues/comments{/number}","contents_url":"https://api.github.com/repos/trackwizz/trackwizz/contents/{+path}","compare_url":"https://api.github.com/repos/trackwizz/trackwizz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trackwizz/trackwizz/merges","archive_url":"https://api.github.com/repos/trackwizz/trackwizz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trackwizz/trackwizz/downloads","issues_url":"https://api.github.com/repos/trackwizz/trackwizz/issues{/number}","pulls_url":"https://api.github.com/repos/trackwizz/trackwizz/pulls{/number}","milestones_url":"https://api.github.com/repos/trackwizz/trackwizz/milestones{/number}","notifications_url":"https://api.github.com/repos/trackwizz/trackwizz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trackwizz/trackwizz/labels{/name}","releases_url":"https://api.github.com/repos/trackwizz/trackwizz/releases{/id}","deployments_url":"https://api.github.com/repos/trackwizz/trackwizz/deployments","created_at":"2019-11-25T13:38:03Z","updated_at":"2019-12-25T18:05:36Z","pushed_at":"2019-12-25T17:39:29Z","git_url":"git://github.com/trackwizz/trackwizz.git","ssh_url":"git@github.com:trackwizz/trackwizz.git","clone_url":"https://github.com/trackwizz/trackwizz.git","svn_url":"https://github.com/trackwizz/trackwizz","homepage":null,"size":8043,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trackwizz/trackwizz/pulls/15"},"html":{"href":"https://github.com/trackwizz/trackwizz/pull/15"},"issue":{"href":"https://api.github.com/repos/trackwizz/trackwizz/issues/15"},"comments":{"href":"https://api.github.com/repos/trackwizz/trackwizz/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/trackwizz/trackwizz/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/trackwizz/trackwizz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trackwizz/trackwizz/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/trackwizz/trackwizz/statuses/97c5edbf4fb7b29d7b268503fc13150ea5e1fd18"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"2016floreza"}}