{"action":"closed","issue":{"url":"https://api.github.com/repos/patronage/donate/issues/6","labels_url":"https://api.github.com/repos/patronage/donate/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/patronage/donate/issues/6/comments","events_url":"https://api.github.com/repos/patronage/donate/issues/6/events","html_url":"https://github.com/patronage/donate/issues/6","id":90451338,"number":6,"title":"State field naming conventions","user":{"login":"imjared","id":525011,"avatar_url":"https://avatars.githubusercontent.com/u/525011?v=3","gravatar_id":"","url":"https://api.github.com/users/imjared","html_url":"https://github.com/imjared","followers_url":"https://api.github.com/users/imjared/followers","following_url":"https://api.github.com/users/imjared/following{/other_user}","gists_url":"https://api.github.com/users/imjared/gists{/gist_id}","starred_url":"https://api.github.com/users/imjared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imjared/subscriptions","organizations_url":"https://api.github.com/users/imjared/orgs","repos_url":"https://api.github.com/users/imjared/repos","events_url":"https://api.github.com/users/imjared/events{/privacy}","received_events_url":"https://api.github.com/users/imjared/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/patronage/donate/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-23T17:56:35Z","updated_at":"2015-06-23T19:01:07Z","closed_at":"2015-06-23T19:01:07Z","body":"_From @imjared on March 2, 2015 20:44_\r\n\r\nIn `processors.js`, a lot of field names are created like this: `firstName: \"billing.name.first\",`. When these are inspected in dev tools, they look like this:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/525011/6449959/9d129aa8-c0f2-11e4-9a05-6eb0cf1714ff.png)\r\n\r\nIt took me a while to realize I couldn't reference `this.state.form.fields.billing.address.city.value` and instead had to get the value with `this.state.form.fields['billing.address.city'].value`. This is pretty confusing naming since the `billing.address.city` looks like a JS object but is really a string.\r\n\r\nUnless there's a compelling reason for this naming, we should change it to prevent further confusion."}}