Skip to content

Commit

Permalink
Always return a Promise for favourites
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Mar 6, 2017
1 parent befe50f commit 7692ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/collections/favorites-button.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = React.createClass
favorites.get('subjects', id: @props.subject.id)
.then ([subject]) -> subject?
else
false
Promise.resolve false

componentWillMount: ->
# see if the subject is in the project's favorites collection
Expand Down

0 comments on commit 7692ae5

Please sign in to comment.