{"action":"created","issue":{"url":"https://api.github.com/repos/sabrinathai/ExperienceSampler/issues/28","repository_url":"https://api.github.com/repos/sabrinathai/ExperienceSampler","labels_url":"https://api.github.com/repos/sabrinathai/ExperienceSampler/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/sabrinathai/ExperienceSampler/issues/28/comments","events_url":"https://api.github.com/repos/sabrinathai/ExperienceSampler/issues/28/events","html_url":"https://github.com/sabrinathai/ExperienceSampler/issues/28","id":326009694,"node_id":"MDU6SXNzdWUzMjYwMDk2OTQ=","number":28,"title":"Issues with Scheduling for Second Set of Notifications","user":{"login":"bizerkmaverick","id":13939413,"node_id":"MDQ6VXNlcjEzOTM5NDEz","avatar_url":"https://avatars0.githubusercontent.com/u/13939413?v=4","gravatar_id":"","url":"https://api.github.com/users/bizerkmaverick","html_url":"https://github.com/bizerkmaverick","followers_url":"https://api.github.com/users/bizerkmaverick/followers","following_url":"https://api.github.com/users/bizerkmaverick/following{/other_user}","gists_url":"https://api.github.com/users/bizerkmaverick/gists{/gist_id}","starred_url":"https://api.github.com/users/bizerkmaverick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizerkmaverick/subscriptions","organizations_url":"https://api.github.com/users/bizerkmaverick/orgs","repos_url":"https://api.github.com/users/bizerkmaverick/repos","events_url":"https://api.github.com/users/bizerkmaverick/events{/privacy}","received_events_url":"https://api.github.com/users/bizerkmaverick/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-24T08:11:49Z","updated_at":"2018-07-30T06:01:53Z","closed_at":"2018-07-30T06:01:53Z","author_association":"NONE","body":"Good evening,\r\n\r\nI am having issues with trying to schedule a second set of notifications based on the time selected during the participant setup. The notifications are scheduled correctly for the first notification function `scheduleNotifs:function() {` however when I try implement the same code into the second schedule notifications function  `scheduleNotifs2:function() {` I get a blank screen after dismissing the alert saying, \"Your questions will load shortly. Please wait while we schedule your notifications for the next week.\" \r\n\r\nThe code added to `participantSetup`\r\n```\r\n{\r\n\"type\": \"timePicker\",\r\n\"variableName\": \"wakeTime\",\r\n\"questionPrompt\": \"Please select the time that you usually wake up:\"\r\n},\r\n```\r\n\r\nThe code added to `scheduleNotifs:function() {`\r\n```\r\nvar wakeTime = localStore.wakeTime.split(\":\");\r\nvar hh = wakeTime[0];\r\nvar mm = wakeTime[1];\r\n```\r\n\r\nCode changed from `var startTime = startDate.setHours(8,0,0,0);` to `var startTime = startDate.setHours(parseInt(hh),parseInt(mm)+30,0,0);`\r\n\r\nThe final variable to set the start time for the next day based on the previous variables\r\n`var nextDiaryLag = ((parseInt(startTime) - parseInt(now))+ (1000 * 60 * 60 * 24));`\r\n\r\nThis all works correctly but when adding this same code to `scheduleNotifs2:function() {`\r\n```\r\nvar wakeTime = localStore.wakeTime.split(\":\");\r\nvar hh = wakeTime[0];\r\nvar mm = wakeTime[1];\r\nvar startTime = startDate.setHours(parseInt(hh),parseInt(mm)+30,0,0);\r\nvar nextDiaryLag = ((parseInt(startTime) - parseInt(now))+ (1000 * 60 * 60 * 24));\r\n```\r\nA blank screen appears when opening the app to schedule the next set of notifications.\r\n\r\nThe second set of notifications scheduled normally before attempting to add this code. I've tried renaming the variables in the second notifs functions and adding the second notifs function to the question logic which did not seem to change anything. Any advice or suggestions would be greatly appreciated. \r\nI have attached the .js file for review as well.\r\n[5.24.18index.zip](https://github.com/sabrinathai/ExperienceSampler/files/2034347/5.24.18index.zip)\r\n\r\nThanks for all the help,\r\nErick"},"comment":{"url":"https://api.github.com/repos/sabrinathai/ExperienceSampler/issues/comments/408755870","html_url":"https://github.com/sabrinathai/ExperienceSampler/issues/28#issuecomment-408755870","issue_url":"https://api.github.com/repos/sabrinathai/ExperienceSampler/issues/28","id":408755870,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODc1NTg3MA==","user":{"login":"bizerkmaverick","id":13939413,"node_id":"MDQ6VXNlcjEzOTM5NDEz","avatar_url":"https://avatars0.githubusercontent.com/u/13939413?v=4","gravatar_id":"","url":"https://api.github.com/users/bizerkmaverick","html_url":"https://github.com/bizerkmaverick","followers_url":"https://api.github.com/users/bizerkmaverick/followers","following_url":"https://api.github.com/users/bizerkmaverick/following{/other_user}","gists_url":"https://api.github.com/users/bizerkmaverick/gists{/gist_id}","starred_url":"https://api.github.com/users/bizerkmaverick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizerkmaverick/subscriptions","organizations_url":"https://api.github.com/users/bizerkmaverick/orgs","repos_url":"https://api.github.com/users/bizerkmaverick/repos","events_url":"https://api.github.com/users/bizerkmaverick/events{/privacy}","received_events_url":"https://api.github.com/users/bizerkmaverick/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T06:01:53Z","updated_at":"2018-07-30T06:01:53Z","author_association":"NONE","body":"This fixed the issue. Thanks so much for your help!"}}
{"actor":{"display_login":"bizerkmaverick"}}