From 03de059fd19f4915b58791c01282b5014b8689bd Mon Sep 17 00:00:00 2001 From: jelhan Date: Tue, 23 Feb 2016 00:02:16 +0100 Subject: [PATCH] Fix: Do not ask which timezone should be chosen if there is no timezone defined in poll --- app/controllers/poll.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/poll.js b/app/controllers/poll.js index 69bb04a..647bd2f 100644 --- a/app/controllers/poll.js +++ b/app/controllers/poll.js @@ -111,7 +111,8 @@ export default Ember.Controller.extend({ * return true if current timezone differs from timezone poll got created with */ timezoneDiffers: function() { - return jstz.determine().name() !== this.get('model.timezone'); + const modelTimezone = this.get('model.timezone'); + return Ember.isPresent(modelTimezone) && jstz.determine().name() !== modelTimezone; }.property('model.timezone'), useLocalTimezone: function() {