{"action":"created","issue":{"url":"https://api.github.com/repos/ShopBro-Team/ShopBro2.0-Web/issues/24","repository_url":"https://api.github.com/repos/ShopBro-Team/ShopBro2.0-Web","labels_url":"https://api.github.com/repos/ShopBro-Team/ShopBro2.0-Web/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ShopBro-Team/ShopBro2.0-Web/issues/24/comments","events_url":"https://api.github.com/repos/ShopBro-Team/ShopBro2.0-Web/issues/24/events","html_url":"https://github.com/ShopBro-Team/ShopBro2.0-Web/issues/24","id":341183446,"node_id":"MDU6SXNzdWUzNDExODM0NDY=","number":24,"title":"BUG: Currently user needs to click 'Close' in celebration to trigger reset (to get a new budget setting view). This needs to happen from 'done' button (on main as well). Otherwise if user doesn't click close, the current shoppinglist remains and gets added over and over to shoppinglist database.","user":{"login":"annika-philipp","id":34147968,"node_id":"MDQ6VXNlcjM0MTQ3OTY4","avatar_url":"https://avatars2.githubusercontent.com/u/34147968?v=4","gravatar_id":"","url":"https://api.github.com/users/annika-philipp","html_url":"https://github.com/annika-philipp","followers_url":"https://api.github.com/users/annika-philipp/followers","following_url":"https://api.github.com/users/annika-philipp/following{/other_user}","gists_url":"https://api.github.com/users/annika-philipp/gists{/gist_id}","starred_url":"https://api.github.com/users/annika-philipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annika-philipp/subscriptions","organizations_url":"https://api.github.com/users/annika-philipp/orgs","repos_url":"https://api.github.com/users/annika-philipp/repos","events_url":"https://api.github.com/users/annika-philipp/events{/privacy}","received_events_url":"https://api.github.com/users/annika-philipp/received_events","type":"User","site_admin":false},"labels":[{"id":948710288,"node_id":"MDU6TGFiZWw5NDg3MTAyODg=","url":"https://api.github.com/repos/ShopBro-Team/ShopBro2.0-Web/labels/high%20priority","name":"high priority","color":"d73a4a","default":false}],"state":"closed","locked":false,"assignee":{"login":"annika-philipp","id":34147968,"node_id":"MDQ6VXNlcjM0MTQ3OTY4","avatar_url":"https://avatars2.githubusercontent.com/u/34147968?v=4","gravatar_id":"","url":"https://api.github.com/users/annika-philipp","html_url":"https://github.com/annika-philipp","followers_url":"https://api.github.com/users/annika-philipp/followers","following_url":"https://api.github.com/users/annika-philipp/following{/other_user}","gists_url":"https://api.github.com/users/annika-philipp/gists{/gist_id}","starred_url":"https://api.github.com/users/annika-philipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annika-philipp/subscriptions","organizations_url":"https://api.github.com/users/annika-philipp/orgs","repos_url":"https://api.github.com/users/annika-philipp/repos","events_url":"https://api.github.com/users/annika-philipp/events{/privacy}","received_events_url":"https://api.github.com/users/annika-philipp/received_events","type":"User","site_admin":false},"assignees":[{"login":"annika-philipp","id":34147968,"node_id":"MDQ6VXNlcjM0MTQ3OTY4","avatar_url":"https://avatars2.githubusercontent.com/u/34147968?v=4","gravatar_id":"","url":"https://api.github.com/users/annika-philipp","html_url":"https://github.com/annika-philipp","followers_url":"https://api.github.com/users/annika-philipp/followers","following_url":"https://api.github.com/users/annika-philipp/following{/other_user}","gists_url":"https://api.github.com/users/annika-philipp/gists{/gist_id}","starred_url":"https://api.github.com/users/annika-philipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annika-philipp/subscriptions","organizations_url":"https://api.github.com/users/annika-philipp/orgs","repos_url":"https://api.github.com/users/annika-philipp/repos","events_url":"https://api.github.com/users/annika-philipp/events{/privacy}","received_events_url":"https://api.github.com/users/annika-philipp/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-07-13T23:06:46Z","updated_at":"2018-07-29T10:01:20Z","closed_at":"2018-07-29T10:01:20Z","author_association":"CONTRIBUTOR","body":"```\r\nfunction done() {\r\n   props.dispatch(saveShoppingList(props.budget, \r\n      (props.budget - props.totalSpend), new Date(), props.shoppingList))\r\n\r\n    if (props.budget - props.totalSpend < 0)  {\r\n      props.dispatch(resetApp())\r\n    } \r\n\r\n  }\r\n```\r\n\r\nabove function can't dispatch resetApp before if clause as it would create an error on celebration component (savings = 0, due to reset!)\r\n\r\n- added {reset} to footer when Link to dashboard, main or setting is clicked. \r\n- no change to negative savings set up in if clause and link to dashboard. Might be worthwhile thinking about adding a negative savings component?"},"comment":{"url":"https://api.github.com/repos/ShopBro-Team/ShopBro2.0-Web/issues/comments/408665437","html_url":"https://github.com/ShopBro-Team/ShopBro2.0-Web/issues/24#issuecomment-408665437","issue_url":"https://api.github.com/repos/ShopBro-Team/ShopBro2.0-Web/issues/24","id":408665437,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODY2NTQzNw==","user":{"login":"annika-philipp","id":34147968,"node_id":"MDQ6VXNlcjM0MTQ3OTY4","avatar_url":"https://avatars2.githubusercontent.com/u/34147968?v=4","gravatar_id":"","url":"https://api.github.com/users/annika-philipp","html_url":"https://github.com/annika-philipp","followers_url":"https://api.github.com/users/annika-philipp/followers","following_url":"https://api.github.com/users/annika-philipp/following{/other_user}","gists_url":"https://api.github.com/users/annika-philipp/gists{/gist_id}","starred_url":"https://api.github.com/users/annika-philipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annika-philipp/subscriptions","organizations_url":"https://api.github.com/users/annika-philipp/orgs","repos_url":"https://api.github.com/users/annika-philipp/repos","events_url":"https://api.github.com/users/annika-philipp/events{/privacy}","received_events_url":"https://api.github.com/users/annika-philipp/received_events","type":"User","site_admin":false},"created_at":"2018-07-29T10:01:20Z","updated_at":"2018-07-29T10:01:20Z","author_association":"CONTRIBUTOR","body":"done"}}
{"actor":{"display_login":"annika-philipp"}}