FIX: pinned-button sometimes not shown when unpinned is null

This commit is contained in:
Joffrey JAFFEUX 2017-09-11 20:04:07 +02:00 committed by GitHub
parent 90dd1609eb
commit 01f0b56331
1 changed files with 1 additions and 1 deletions

View File

@ -17,6 +17,6 @@ export default Ember.Component.extend({
@computed("topic.pinned", "topic.deleted", "topic.unpinned")
hidden(pinned, deleted, unpinned) {
return deleted || (!pinned && !unpinned);
return deleted || (pinned === false && unpinned === false);
}
});