From 18114c7bdbf32513217b41d8fb5ab75da596883f Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 12 Sep 2017 01:03:16 +0200 Subject: [PATCH] Revert "FIX: pinned-button sometimes not shown when unpinned is null" This reverts commit 01f0b563312b0b3cf1e9a0f78248180494ffce85. --- .../javascripts/discourse/components/pinned-button.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/pinned-button.js.es6 b/app/assets/javascripts/discourse/components/pinned-button.js.es6 index 71c07380ff6..3d287deb2ad 100644 --- a/app/assets/javascripts/discourse/components/pinned-button.js.es6 +++ b/app/assets/javascripts/discourse/components/pinned-button.js.es6 @@ -17,6 +17,6 @@ export default Ember.Component.extend({ @computed("topic.pinned", "topic.deleted", "topic.unpinned") hidden(pinned, deleted, unpinned) { - return deleted || (pinned === false && unpinned === false); + return deleted || (!pinned && !unpinned); } });