Skip to content

Commit 23987da

Browse files
committed
fix: power user survey shown repeatedly
1 parent a9bfac6 commit 23987da

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/extensionsIntegrated/Phoenix/guided-tour.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ define(function (require, exports, module) {
230230
Metrics.countEvent(Metrics.EVENT_TYPE.USER, "survey", "powerNotification", 1);
231231
_showSurveyNotification(surveyURL, title);
232232
}
233-
nextShowDate.setUTCDate(nextShowDate.getUTCDate() + intervalDays);
234-
userAlreadyDidAction.nextPowerSurveyShowDate = nextShowDate.getTime();
233+
let newNextShowDate = new Date();
234+
newNextShowDate.setUTCDate(newNextShowDate.getUTCDate() + intervalDays);
235+
userAlreadyDidAction.nextPowerSurveyShowDate = newNextShowDate.getTime();
235236
PhStore.setItem(GUIDED_TOUR_LOCAL_STORAGE_KEY, JSON.stringify(userAlreadyDidAction));
236237
}
237238

0 commit comments

Comments
 (0)