{"action":"created","comment":{"url":"https://api.github.com/repos/swaponline/swap.react/pulls/comments/239469765","pull_request_review_id":182260567,"id":239469765,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTQ2OTc2NQ==","diff_hunk":"@@ -53,29 +56,60 @@ export default class Wallet extends Component {\n   state = {\n     view: 'off',\n     zeroBalance: true,\n+    saveKeys: false,\n   }\n \n   componentWillMount() {\n-    process.env.MAINNET && localStorage.setItem(constants.localStorage.testnetSkip, true)\n-    if (localStorage.getItem(constants.localStorage.privateKeysSaved)) {\n+    actions.user.getBalances()\n+    actions.analytics.dataEvent('open-page-balances')\n+\n+    if (!process.env.MAINNET) {\n+      localStorage.setItem(constants.localStorage.testnetSkip, 'true')\n+    } else {\n+      localStorage.setItem(constants.localStorage.privateKeysSaved, 'false')\n+      localStorage.setItem(constants.localStorage.testnetSkip, 'false')\n+    }\n+  }\n+\n+  componentWillReceiveProps() {\n+    const { currencyBalance } = this.props\n+\n+    currencyBalance.forEach(cur => {\n+      if (cur > 0) {\n+        this.setState(() => ({ zeroBalance: false }))\n+      }\n+    })\n+\n+    const { zeroBalance } = this.state\n+\n+    const testSkip = localStorage.getItem(constants.localStorage.testnetSkip)\n+    const saveKeys = localStorage.getItem(constants.localStorage.privateKeysSaved)\n+\n+    if (saveKeys === 'false' && zeroBalance) {\n       this.changeView('checkKeys')\n     } else {\n-      // actions.modals.open(constants.modals.PrivateKeys, {})\n+      if (testSkip === 'false') {\n+        this.setState(() => ({ saveKeys: true }))\n+      }\n     }\n   }\n \n-  componentDidMount() {\n-    actions.user.getBalances()\n-    actions.analytics.dataEvent('open-page-balances')\n+  componentDidUpdate() {\n+    const { saveKeys } = this.state\n+\n+    if (saveKeys) {","path":"shared/pages/Wallet/Wallet.js","position":70,"original_position":70,"commit_id":"e930c2dda3553dacfa3e20c699fd08d99796f8a9","original_commit_id":"e930c2dda3553dacfa3e20c699fd08d99796f8a9","user":{"login":"caffeinum","id":1909384,"node_id":"MDQ6VXNlcjE5MDkzODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1909384?v=4","gravatar_id":"","url":"https://api.github.com/users/caffeinum","html_url":"https://github.com/caffeinum","followers_url":"https://api.github.com/users/caffeinum/followers","following_url":"https://api.github.com/users/caffeinum/following{/other_user}","gists_url":"https://api.github.com/users/caffeinum/gists{/gist_id}","starred_url":"https://api.github.com/users/caffeinum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caffeinum/subscriptions","organizations_url":"https://api.github.com/users/caffeinum/orgs","repos_url":"https://api.github.com/users/caffeinum/repos","events_url":"https://api.github.com/users/caffeinum/events{/privacy}","received_events_url":"https://api.github.com/users/caffeinum/received_events","type":"User","site_admin":false},"body":"bool хранить нельзя, не поддерживается","created_at":"2018-12-06T14:21:37Z","updated_at":"2018-12-06T14:21:37Z","html_url":"https://github.com/swaponline/swap.react/pull/1093#discussion_r239469765","pull_request_url":"https://api.github.com/repos/swaponline/swap.react/pulls/1093","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/swaponline/swap.react/pulls/comments/239469765"},"html":{"href":"https://github.com/swaponline/swap.react/pull/1093#discussion_r239469765"},"pull_request":{"href":"https://api.github.com/repos/swaponline/swap.react/pulls/1093"}},"in_reply_to_id":239469176},"pull_request":{"url":"https://api.github.com/repos/swaponline/swap.react/pulls/1093","id":236511814,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NTExODE0","html_url":"https://github.com/swaponline/swap.react/pull/1093","diff_url":"https://github.com/swaponline/swap.react/pull/1093.diff","patch_url":"https://github.com/swaponline/swap.react/pull/1093.patch","issue_url":"https://api.github.com/repos/swaponline/swap.react/issues/1093","number":1093,"state":"open","locked":false,"title":"Пользователь может не сохранить ключи от ака с бабками, заставить скачать если есть деньги в мейннете","user":{"login":"nikdementev","id":17093843,"node_id":"MDQ6VXNlcjE3MDkzODQz","avatar_url":"https://avatars1.githubusercontent.com/u/17093843?v=4","gravatar_id":"","url":"https://api.github.com/users/nikdementev","html_url":"https://github.com/nikdementev","followers_url":"https://api.github.com/users/nikdementev/followers","following_url":"https://api.github.com/users/nikdementev/following{/other_user}","gists_url":"https://api.github.com/users/nikdementev/gists{/gist_id}","starred_url":"https://api.github.com/users/nikdementev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikdementev/subscriptions","organizations_url":"https://api.github.com/users/nikdementev/orgs","repos_url":"https://api.github.com/users/nikdementev/repos","events_url":"https://api.github.com/users/nikdementev/events{/privacy}","received_events_url":"https://api.github.com/users/nikdementev/received_events","type":"User","site_admin":false},"body":"# Pull request template\r\n\r\n## Checklist\r\n\r\n<!-- You have to tick all the boxes -->\r\n\r\n- [x] I have read the [CONTRIBUTING](https://github.com/swaponline/swap.react/wiki/Contribution) guide\r\n- [x] branch rebased on `develop`\r\n- [x] styleguide check `npm run validate`\r\n- [x] good naming\r\n- [x] keep simple\r\n- [ ] video or screenshot attached\r\n- [x] testing instruction attached\r\n- [x] check your PR once again\r\n\r\n\r\n### Description\r\n\r\n<!-- Include issue number and motivation for these code changes -->\r\n\r\n\r\n\r\n\r\n### Video or screenshot\r\n\r\n<!-- Paste video or screenshots -->\r\n\r\n\r\n\r\n\r\n### What and how to test\r\n \r\nnpm run dev:mainnet\r\nперевести деньги на любую валюту\r\n\r\n\r\n\r\n\r\n\r\n","created_at":"2018-12-06T12:24:52Z","updated_at":"2018-12-06T14:21:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e501aa8e5757a7eff403588789ec79c255e04336","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/swaponline/swap.react/pulls/1093/commits","review_comments_url":"https://api.github.com/repos/swaponline/swap.react/pulls/1093/comments","review_comment_url":"https://api.github.com/repos/swaponline/swap.react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swaponline/swap.react/issues/1093/comments","statuses_url":"https://api.github.com/repos/swaponline/swap.react/statuses/e930c2dda3553dacfa3e20c699fd08d99796f8a9","head":{"label":"swaponline:addSaveKeys","ref":"addSaveKeys","sha":"e930c2dda3553dacfa3e20c699fd08d99796f8a9","user":{"login":"swaponline","id":38111297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTExMjk3","avatar_url":"https://avatars3.githubusercontent.com/u/38111297?v=4","gravatar_id":"","url":"https://api.github.com/users/swaponline","html_url":"https://github.com/swaponline","followers_url":"https://api.github.com/users/swaponline/followers","following_url":"https://api.github.com/users/swaponline/following{/other_user}","gists_url":"https://api.github.com/users/swaponline/gists{/gist_id}","starred_url":"https://api.github.com/users/swaponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaponline/subscriptions","organizations_url":"https://api.github.com/users/swaponline/orgs","repos_url":"https://api.github.com/users/swaponline/repos","events_url":"https://api.github.com/users/swaponline/events{/privacy}","received_events_url":"https://api.github.com/users/swaponline/received_events","type":"Organization","site_admin":false},"repo":{"id":130675402,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA2NzU0MDI=","name":"swap.react","full_name":"swaponline/swap.react","private":false,"owner":{"login":"swaponline","id":38111297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTExMjk3","avatar_url":"https://avatars3.githubusercontent.com/u/38111297?v=4","gravatar_id":"","url":"https://api.github.com/users/swaponline","html_url":"https://github.com/swaponline","followers_url":"https://api.github.com/users/swaponline/followers","following_url":"https://api.github.com/users/swaponline/following{/other_user}","gists_url":"https://api.github.com/users/swaponline/gists{/gist_id}","starred_url":"https://api.github.com/users/swaponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaponline/subscriptions","organizations_url":"https://api.github.com/users/swaponline/orgs","repos_url":"https://api.github.com/users/swaponline/repos","events_url":"https://api.github.com/users/swaponline/events{/privacy}","received_events_url":"https://api.github.com/users/swaponline/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/swaponline/swap.react","description":"develop branch --> https://testnet.swap.online :) In-browser atomic swap exchange based on swap.core library. It is an implementation of Swap DEP crosschain protocol. Hosted at https://swap.online","fork":false,"url":"https://api.github.com/repos/swaponline/swap.react","forks_url":"https://api.github.com/repos/swaponline/swap.react/forks","keys_url":"https://api.github.com/repos/swaponline/swap.react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swaponline/swap.react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swaponline/swap.react/teams","hooks_url":"https://api.github.com/repos/swaponline/swap.react/hooks","issue_events_url":"https://api.github.com/repos/swaponline/swap.react/issues/events{/number}","events_url":"https://api.github.com/repos/swaponline/swap.react/events","assignees_url":"https://api.github.com/repos/swaponline/swap.react/assignees{/user}","branches_url":"https://api.github.com/repos/swaponline/swap.react/branches{/branch}","tags_url":"https://api.github.com/repos/swaponline/swap.react/tags","blobs_url":"https://api.github.com/repos/swaponline/swap.react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swaponline/swap.react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swaponline/swap.react/git/refs{/sha}","trees_url":"https://api.github.com/repos/swaponline/swap.react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swaponline/swap.react/statuses/{sha}","languages_url":"https://api.github.com/repos/swaponline/swap.react/languages","stargazers_url":"https://api.github.com/repos/swaponline/swap.react/stargazers","contributors_url":"https://api.github.com/repos/swaponline/swap.react/contributors","subscribers_url":"https://api.github.com/repos/swaponline/swap.react/subscribers","subscription_url":"https://api.github.com/repos/swaponline/swap.react/subscription","commits_url":"https://api.github.com/repos/swaponline/swap.react/commits{/sha}","git_commits_url":"https://api.github.com/repos/swaponline/swap.react/git/commits{/sha}","comments_url":"https://api.github.com/repos/swaponline/swap.react/comments{/number}","issue_comment_url":"https://api.github.com/repos/swaponline/swap.react/issues/comments{/number}","contents_url":"https://api.github.com/repos/swaponline/swap.react/contents/{+path}","compare_url":"https://api.github.com/repos/swaponline/swap.react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swaponline/swap.react/merges","archive_url":"https://api.github.com/repos/swaponline/swap.react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swaponline/swap.react/downloads","issues_url":"https://api.github.com/repos/swaponline/swap.react/issues{/number}","pulls_url":"https://api.github.com/repos/swaponline/swap.react/pulls{/number}","milestones_url":"https://api.github.com/repos/swaponline/swap.react/milestones{/number}","notifications_url":"https://api.github.com/repos/swaponline/swap.react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swaponline/swap.react/labels{/name}","releases_url":"https://api.github.com/repos/swaponline/swap.react/releases{/id}","deployments_url":"https://api.github.com/repos/swaponline/swap.react/deployments","created_at":"2018-04-23T09:48:44Z","updated_at":"2018-11-20T14:54:12Z","pushed_at":"2018-12-06T14:14:01Z","git_url":"git://github.com/swaponline/swap.react.git","ssh_url":"git@github.com:swaponline/swap.react.git","clone_url":"https://github.com/swaponline/swap.react.git","svn_url":"https://github.com/swaponline/swap.react","homepage":"https://swap.online","size":14478,"stargazers_count":34,"watchers_count":34,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":103,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":38,"open_issues":103,"watchers":34,"default_branch":"master"}},"base":{"label":"swaponline:develop","ref":"develop","sha":"9d00a4f8a65a473e7ce5fe2d6f61f9b7d9772728","user":{"login":"swaponline","id":38111297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTExMjk3","avatar_url":"https://avatars3.githubusercontent.com/u/38111297?v=4","gravatar_id":"","url":"https://api.github.com/users/swaponline","html_url":"https://github.com/swaponline","followers_url":"https://api.github.com/users/swaponline/followers","following_url":"https://api.github.com/users/swaponline/following{/other_user}","gists_url":"https://api.github.com/users/swaponline/gists{/gist_id}","starred_url":"https://api.github.com/users/swaponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaponline/subscriptions","organizations_url":"https://api.github.com/users/swaponline/orgs","repos_url":"https://api.github.com/users/swaponline/repos","events_url":"https://api.github.com/users/swaponline/events{/privacy}","received_events_url":"https://api.github.com/users/swaponline/received_events","type":"Organization","site_admin":false},"repo":{"id":130675402,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA2NzU0MDI=","name":"swap.react","full_name":"swaponline/swap.react","private":false,"owner":{"login":"swaponline","id":38111297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTExMjk3","avatar_url":"https://avatars3.githubusercontent.com/u/38111297?v=4","gravatar_id":"","url":"https://api.github.com/users/swaponline","html_url":"https://github.com/swaponline","followers_url":"https://api.github.com/users/swaponline/followers","following_url":"https://api.github.com/users/swaponline/following{/other_user}","gists_url":"https://api.github.com/users/swaponline/gists{/gist_id}","starred_url":"https://api.github.com/users/swaponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaponline/subscriptions","organizations_url":"https://api.github.com/users/swaponline/orgs","repos_url":"https://api.github.com/users/swaponline/repos","events_url":"https://api.github.com/users/swaponline/events{/privacy}","received_events_url":"https://api.github.com/users/swaponline/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/swaponline/swap.react","description":"develop branch --> https://testnet.swap.online :) In-browser atomic swap exchange based on swap.core library. It is an implementation of Swap DEP crosschain protocol. Hosted at https://swap.online","fork":false,"url":"https://api.github.com/repos/swaponline/swap.react","forks_url":"https://api.github.com/repos/swaponline/swap.react/forks","keys_url":"https://api.github.com/repos/swaponline/swap.react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swaponline/swap.react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swaponline/swap.react/teams","hooks_url":"https://api.github.com/repos/swaponline/swap.react/hooks","issue_events_url":"https://api.github.com/repos/swaponline/swap.react/issues/events{/number}","events_url":"https://api.github.com/repos/swaponline/swap.react/events","assignees_url":"https://api.github.com/repos/swaponline/swap.react/assignees{/user}","branches_url":"https://api.github.com/repos/swaponline/swap.react/branches{/branch}","tags_url":"https://api.github.com/repos/swaponline/swap.react/tags","blobs_url":"https://api.github.com/repos/swaponline/swap.react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swaponline/swap.react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swaponline/swap.react/git/refs{/sha}","trees_url":"https://api.github.com/repos/swaponline/swap.react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swaponline/swap.react/statuses/{sha}","languages_url":"https://api.github.com/repos/swaponline/swap.react/languages","stargazers_url":"https://api.github.com/repos/swaponline/swap.react/stargazers","contributors_url":"https://api.github.com/repos/swaponline/swap.react/contributors","subscribers_url":"https://api.github.com/repos/swaponline/swap.react/subscribers","subscription_url":"https://api.github.com/repos/swaponline/swap.react/subscription","commits_url":"https://api.github.com/repos/swaponline/swap.react/commits{/sha}","git_commits_url":"https://api.github.com/repos/swaponline/swap.react/git/commits{/sha}","comments_url":"https://api.github.com/repos/swaponline/swap.react/comments{/number}","issue_comment_url":"https://api.github.com/repos/swaponline/swap.react/issues/comments{/number}","contents_url":"https://api.github.com/repos/swaponline/swap.react/contents/{+path}","compare_url":"https://api.github.com/repos/swaponline/swap.react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swaponline/swap.react/merges","archive_url":"https://api.github.com/repos/swaponline/swap.react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swaponline/swap.react/downloads","issues_url":"https://api.github.com/repos/swaponline/swap.react/issues{/number}","pulls_url":"https://api.github.com/repos/swaponline/swap.react/pulls{/number}","milestones_url":"https://api.github.com/repos/swaponline/swap.react/milestones{/number}","notifications_url":"https://api.github.com/repos/swaponline/swap.react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swaponline/swap.react/labels{/name}","releases_url":"https://api.github.com/repos/swaponline/swap.react/releases{/id}","deployments_url":"https://api.github.com/repos/swaponline/swap.react/deployments","created_at":"2018-04-23T09:48:44Z","updated_at":"2018-11-20T14:54:12Z","pushed_at":"2018-12-06T14:14:01Z","git_url":"git://github.com/swaponline/swap.react.git","ssh_url":"git@github.com:swaponline/swap.react.git","clone_url":"https://github.com/swaponline/swap.react.git","svn_url":"https://github.com/swaponline/swap.react","homepage":"https://swap.online","size":14478,"stargazers_count":34,"watchers_count":34,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":103,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":38,"open_issues":103,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swaponline/swap.react/pulls/1093"},"html":{"href":"https://github.com/swaponline/swap.react/pull/1093"},"issue":{"href":"https://api.github.com/repos/swaponline/swap.react/issues/1093"},"comments":{"href":"https://api.github.com/repos/swaponline/swap.react/issues/1093/comments"},"review_comments":{"href":"https://api.github.com/repos/swaponline/swap.react/pulls/1093/comments"},"review_comment":{"href":"https://api.github.com/repos/swaponline/swap.react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swaponline/swap.react/pulls/1093/commits"},"statuses":{"href":"https://api.github.com/repos/swaponline/swap.react/statuses/e930c2dda3553dacfa3e20c699fd08d99796f8a9"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"caffeinum"}}