{"action":"created","comment":{"url":"https://api.github.com/repos/the-smaug/app-traveled/pulls/comments/172257888","pull_request_review_id":101244471,"id":172257888,"diff_hunk":"@@ -78,14 +134,29 @@ export default class CreationDepense extends Component {\n         />\n         <Text style={styles.item}>Payé par</Text>\n         <RadioGroup\n-          onSelect={(payeur) => this.onSelect(payeur)}>\n+          onSelect={(index, payeur) => this.onSelect(payeur)}\n+          selectedIndex={\n+            this.findPayeurIndex()\n+          }>\n           {this.state.users.map(user =>\n             <RadioButton value={user.key}>\n-              <Text>a</Text>\n+              <Text>{user.surname} {user.name}</Text>\n             </RadioButton>\n           )}\n         </RadioGroup>\n         <Text style={styles.item}>Personnes concernées</Text>\n+        <SelectMultiple\n+          items={this.state.membres}\n+          selectedItems={this.state.concernedMembers}\n+          onSelectionsChange={this.onSelectionsChange} />\n+        {/* Vu que le montant du remboursement est le même pour tous on peut le spécifié dans un seul champ   */}\n+        <Text style={styles.item}>Prix par personne concernée : {this.state.concernedMembers.length !== 0 ? this.state.montant / this.state.concernedMembers.length + ' €' : '0 €'}</Text>","path":"src/components/CreationDepenseComponent.js","position":160,"original_position":160,"commit_id":"6ed0862cd10ca22593ccd8df192d233fca7a5a65","original_commit_id":"6ed0862cd10ca22593ccd8df192d233fca7a5a65","user":{"login":"HighnKein","id":9964529,"avatar_url":"https://avatars1.githubusercontent.com/u/9964529?v=4","gravatar_id":"","url":"https://api.github.com/users/HighnKein","html_url":"https://github.com/HighnKein","followers_url":"https://api.github.com/users/HighnKein/followers","following_url":"https://api.github.com/users/HighnKein/following{/other_user}","gists_url":"https://api.github.com/users/HighnKein/gists{/gist_id}","starred_url":"https://api.github.com/users/HighnKein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HighnKein/subscriptions","organizations_url":"https://api.github.com/users/HighnKein/orgs","repos_url":"https://api.github.com/users/HighnKein/repos","events_url":"https://api.github.com/users/HighnKein/events{/privacy}","received_events_url":"https://api.github.com/users/HighnKein/received_events","type":"User","site_admin":false},"body":"Pas compris pourquoi y a besoin d'une condition ? le cas de concernedMembers.length == 0 ça fonctionne pas ? ","created_at":"2018-03-05T17:03:16Z","updated_at":"2018-03-05T17:37:29Z","html_url":"https://github.com/the-smaug/app-traveled/pull/187#discussion_r172257888","pull_request_url":"https://api.github.com/repos/the-smaug/app-traveled/pulls/187","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/the-smaug/app-traveled/pulls/comments/172257888"},"html":{"href":"https://github.com/the-smaug/app-traveled/pull/187#discussion_r172257888"},"pull_request":{"href":"https://api.github.com/repos/the-smaug/app-traveled/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/the-smaug/app-traveled/pulls/187","id":172907196,"html_url":"https://github.com/the-smaug/app-traveled/pull/187","diff_url":"https://github.com/the-smaug/app-traveled/pull/187.diff","patch_url":"https://github.com/the-smaug/app-traveled/pull/187.patch","issue_url":"https://api.github.com/repos/the-smaug/app-traveled/issues/187","number":187,"state":"open","locked":false,"title":"#138 #28 ajouter/modifier dépenses","user":{"login":"martinjeremyl","id":32765322,"avatar_url":"https://avatars0.githubusercontent.com/u/32765322?v=4","gravatar_id":"","url":"https://api.github.com/users/martinjeremyl","html_url":"https://github.com/martinjeremyl","followers_url":"https://api.github.com/users/martinjeremyl/followers","following_url":"https://api.github.com/users/martinjeremyl/following{/other_user}","gists_url":"https://api.github.com/users/martinjeremyl/gists{/gist_id}","starred_url":"https://api.github.com/users/martinjeremyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinjeremyl/subscriptions","organizations_url":"https://api.github.com/users/martinjeremyl/orgs","repos_url":"https://api.github.com/users/martinjeremyl/repos","events_url":"https://api.github.com/users/martinjeremyl/events{/privacy}","received_events_url":"https://api.github.com/users/martinjeremyl/received_events","type":"User","site_admin":false},"body":"## But\r\n\r\n## Travail réalisé\r\n\r\n- [x] Composant\r\n- [ ] Style\r\n- [ ] Tests unitaires\r\n- [ ] Tests fonctionnels","created_at":"2018-03-05T15:55:03Z","updated_at":"2018-03-05T17:37:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"513d5ce9d4cf76b30b18948f5ce7fbe0abaa7770","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/the-smaug/app-traveled/pulls/187/commits","review_comments_url":"https://api.github.com/repos/the-smaug/app-traveled/pulls/187/comments","review_comment_url":"https://api.github.com/repos/the-smaug/app-traveled/pulls/comments{/number}","comments_url":"https://api.github.com/repos/the-smaug/app-traveled/issues/187/comments","statuses_url":"https://api.github.com/repos/the-smaug/app-traveled/statuses/6ed0862cd10ca22593ccd8df192d233fca7a5a65","head":{"label":"the-smaug:138-28-ajouter-modifier-depenses","ref":"138-28-ajouter-modifier-depenses","sha":"6ed0862cd10ca22593ccd8df192d233fca7a5a65","user":{"login":"the-smaug","id":22884251,"avatar_url":"https://avatars2.githubusercontent.com/u/22884251?v=4","gravatar_id":"","url":"https://api.github.com/users/the-smaug","html_url":"https://github.com/the-smaug","followers_url":"https://api.github.com/users/the-smaug/followers","following_url":"https://api.github.com/users/the-smaug/following{/other_user}","gists_url":"https://api.github.com/users/the-smaug/gists{/gist_id}","starred_url":"https://api.github.com/users/the-smaug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-smaug/subscriptions","organizations_url":"https://api.github.com/users/the-smaug/orgs","repos_url":"https://api.github.com/users/the-smaug/repos","events_url":"https://api.github.com/users/the-smaug/events{/privacy}","received_events_url":"https://api.github.com/users/the-smaug/received_events","type":"User","site_admin":false},"repo":{"id":106805253,"name":"app-traveled","full_name":"the-smaug/app-traveled","owner":{"login":"the-smaug","id":22884251,"avatar_url":"https://avatars2.githubusercontent.com/u/22884251?v=4","gravatar_id":"","url":"https://api.github.com/users/the-smaug","html_url":"https://github.com/the-smaug","followers_url":"https://api.github.com/users/the-smaug/followers","following_url":"https://api.github.com/users/the-smaug/following{/other_user}","gists_url":"https://api.github.com/users/the-smaug/gists{/gist_id}","starred_url":"https://api.github.com/users/the-smaug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-smaug/subscriptions","organizations_url":"https://api.github.com/users/the-smaug/orgs","repos_url":"https://api.github.com/users/the-smaug/repos","events_url":"https://api.github.com/users/the-smaug/events{/privacy}","received_events_url":"https://api.github.com/users/the-smaug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/the-smaug/app-traveled","description":null,"fork":false,"url":"https://api.github.com/repos/the-smaug/app-traveled","forks_url":"https://api.github.com/repos/the-smaug/app-traveled/forks","keys_url":"https://api.github.com/repos/the-smaug/app-traveled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-smaug/app-traveled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-smaug/app-traveled/teams","hooks_url":"https://api.github.com/repos/the-smaug/app-traveled/hooks","issue_events_url":"https://api.github.com/repos/the-smaug/app-traveled/issues/events{/number}","events_url":"https://api.github.com/repos/the-smaug/app-traveled/events","assignees_url":"https://api.github.com/repos/the-smaug/app-traveled/assignees{/user}","branches_url":"https://api.github.com/repos/the-smaug/app-traveled/branches{/branch}","tags_url":"https://api.github.com/repos/the-smaug/app-traveled/tags","blobs_url":"https://api.github.com/repos/the-smaug/app-traveled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-smaug/app-traveled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-smaug/app-traveled/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-smaug/app-traveled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-smaug/app-traveled/statuses/{sha}","languages_url":"https://api.github.com/repos/the-smaug/app-traveled/languages","stargazers_url":"https://api.github.com/repos/the-smaug/app-traveled/stargazers","contributors_url":"https://api.github.com/repos/the-smaug/app-traveled/contributors","subscribers_url":"https://api.github.com/repos/the-smaug/app-traveled/subscribers","subscription_url":"https://api.github.com/repos/the-smaug/app-traveled/subscription","commits_url":"https://api.github.com/repos/the-smaug/app-traveled/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-smaug/app-traveled/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-smaug/app-traveled/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-smaug/app-traveled/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-smaug/app-traveled/contents/{+path}","compare_url":"https://api.github.com/repos/the-smaug/app-traveled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-smaug/app-traveled/merges","archive_url":"https://api.github.com/repos/the-smaug/app-traveled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-smaug/app-traveled/downloads","issues_url":"https://api.github.com/repos/the-smaug/app-traveled/issues{/number}","pulls_url":"https://api.github.com/repos/the-smaug/app-traveled/pulls{/number}","milestones_url":"https://api.github.com/repos/the-smaug/app-traveled/milestones{/number}","notifications_url":"https://api.github.com/repos/the-smaug/app-traveled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-smaug/app-traveled/labels{/name}","releases_url":"https://api.github.com/repos/the-smaug/app-traveled/releases{/id}","deployments_url":"https://api.github.com/repos/the-smaug/app-traveled/deployments","created_at":"2017-10-13T09:32:03Z","updated_at":"2018-01-24T08:43:05Z","pushed_at":"2018-03-05T17:36:18Z","git_url":"git://github.com/the-smaug/app-traveled.git","ssh_url":"git@github.com:the-smaug/app-traveled.git","clone_url":"https://github.com/the-smaug/app-traveled.git","svn_url":"https://github.com/the-smaug/app-traveled","homepage":null,"size":3782,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":75,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":75,"watchers":2,"default_branch":"master"}},"base":{"label":"the-smaug:master","ref":"master","sha":"44277c1e5ab0cd0968c074953a036c3ef27f41c3","user":{"login":"the-smaug","id":22884251,"avatar_url":"https://avatars2.githubusercontent.com/u/22884251?v=4","gravatar_id":"","url":"https://api.github.com/users/the-smaug","html_url":"https://github.com/the-smaug","followers_url":"https://api.github.com/users/the-smaug/followers","following_url":"https://api.github.com/users/the-smaug/following{/other_user}","gists_url":"https://api.github.com/users/the-smaug/gists{/gist_id}","starred_url":"https://api.github.com/users/the-smaug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-smaug/subscriptions","organizations_url":"https://api.github.com/users/the-smaug/orgs","repos_url":"https://api.github.com/users/the-smaug/repos","events_url":"https://api.github.com/users/the-smaug/events{/privacy}","received_events_url":"https://api.github.com/users/the-smaug/received_events","type":"User","site_admin":false},"repo":{"id":106805253,"name":"app-traveled","full_name":"the-smaug/app-traveled","owner":{"login":"the-smaug","id":22884251,"avatar_url":"https://avatars2.githubusercontent.com/u/22884251?v=4","gravatar_id":"","url":"https://api.github.com/users/the-smaug","html_url":"https://github.com/the-smaug","followers_url":"https://api.github.com/users/the-smaug/followers","following_url":"https://api.github.com/users/the-smaug/following{/other_user}","gists_url":"https://api.github.com/users/the-smaug/gists{/gist_id}","starred_url":"https://api.github.com/users/the-smaug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-smaug/subscriptions","organizations_url":"https://api.github.com/users/the-smaug/orgs","repos_url":"https://api.github.com/users/the-smaug/repos","events_url":"https://api.github.com/users/the-smaug/events{/privacy}","received_events_url":"https://api.github.com/users/the-smaug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/the-smaug/app-traveled","description":null,"fork":false,"url":"https://api.github.com/repos/the-smaug/app-traveled","forks_url":"https://api.github.com/repos/the-smaug/app-traveled/forks","keys_url":"https://api.github.com/repos/the-smaug/app-traveled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-smaug/app-traveled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-smaug/app-traveled/teams","hooks_url":"https://api.github.com/repos/the-smaug/app-traveled/hooks","issue_events_url":"https://api.github.com/repos/the-smaug/app-traveled/issues/events{/number}","events_url":"https://api.github.com/repos/the-smaug/app-traveled/events","assignees_url":"https://api.github.com/repos/the-smaug/app-traveled/assignees{/user}","branches_url":"https://api.github.com/repos/the-smaug/app-traveled/branches{/branch}","tags_url":"https://api.github.com/repos/the-smaug/app-traveled/tags","blobs_url":"https://api.github.com/repos/the-smaug/app-traveled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-smaug/app-traveled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-smaug/app-traveled/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-smaug/app-traveled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-smaug/app-traveled/statuses/{sha}","languages_url":"https://api.github.com/repos/the-smaug/app-traveled/languages","stargazers_url":"https://api.github.com/repos/the-smaug/app-traveled/stargazers","contributors_url":"https://api.github.com/repos/the-smaug/app-traveled/contributors","subscribers_url":"https://api.github.com/repos/the-smaug/app-traveled/subscribers","subscription_url":"https://api.github.com/repos/the-smaug/app-traveled/subscription","commits_url":"https://api.github.com/repos/the-smaug/app-traveled/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-smaug/app-traveled/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-smaug/app-traveled/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-smaug/app-traveled/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-smaug/app-traveled/contents/{+path}","compare_url":"https://api.github.com/repos/the-smaug/app-traveled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-smaug/app-traveled/merges","archive_url":"https://api.github.com/repos/the-smaug/app-traveled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-smaug/app-traveled/downloads","issues_url":"https://api.github.com/repos/the-smaug/app-traveled/issues{/number}","pulls_url":"https://api.github.com/repos/the-smaug/app-traveled/pulls{/number}","milestones_url":"https://api.github.com/repos/the-smaug/app-traveled/milestones{/number}","notifications_url":"https://api.github.com/repos/the-smaug/app-traveled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-smaug/app-traveled/labels{/name}","releases_url":"https://api.github.com/repos/the-smaug/app-traveled/releases{/id}","deployments_url":"https://api.github.com/repos/the-smaug/app-traveled/deployments","created_at":"2017-10-13T09:32:03Z","updated_at":"2018-01-24T08:43:05Z","pushed_at":"2018-03-05T17:36:18Z","git_url":"git://github.com/the-smaug/app-traveled.git","ssh_url":"git@github.com:the-smaug/app-traveled.git","clone_url":"https://github.com/the-smaug/app-traveled.git","svn_url":"https://github.com/the-smaug/app-traveled","homepage":null,"size":3782,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":75,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":75,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/the-smaug/app-traveled/pulls/187"},"html":{"href":"https://github.com/the-smaug/app-traveled/pull/187"},"issue":{"href":"https://api.github.com/repos/the-smaug/app-traveled/issues/187"},"comments":{"href":"https://api.github.com/repos/the-smaug/app-traveled/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/the-smaug/app-traveled/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/the-smaug/app-traveled/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/the-smaug/app-traveled/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/the-smaug/app-traveled/statuses/6ed0862cd10ca22593ccd8df192d233fca7a5a65"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"HighnKein"}}