 
   update: ->
 
+    { isInteracted } = @getData().interactions.like
+
     @setTemplate @pistachio()
 
-    if @isInteracted
+    if isInteracted
     then @setClass 'liked'
     else @unsetClass 'liked'
 



  setLikeState: (state) ->
    @isInteracted = state
    @update()




  pistachio: ->

    { isInteracted } = @getData().interactions.like
    "#{if isInteracted then "Unlike" else "Like"}"

