Closed dr-bizz closed 1 year ago
Were you able to reproduce the issue from Helpscout before changes then confirm this does not have similar issues?
Yes, the bug is in the code below, as Caleb was updating scope.localModel
rather than just setting the initial value.
scope.localModel =
scope.localModel && scope.monthYearOnly
? moment(new Date(scope.localModel)).format('YYYY-MM-DD')
: scope.localModel
? moment(new Date(scope.localModel)).format('MM/DD/YYYY hh:mm A')
: null;
let initialDate = scope.localModel || null;
I have not included this code in this PR. I have included the email question validation before sending it off to the server and setting the Grad date day to 10 to ensure time zones don't impact the value.
Tested on staging and looks good to go.
Description
Re-adding changes which were on PR #842 but not included changes where localModel is set. https://secure.helpscout.net/conversation/2355398292/1014142?folderId=7296147
Changes