 
   pistachio: ->
 
-    "#{if @isInteracted then "Unlike" else "Like"}"
+    { isInteracted } = @getData().interactions.like
+    "#{if isInteracted then "Unlike" else "Like"}"
 



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




  update: ->

    { isInteracted } = @getData().interactions.like

    @setTemplate @pistachio()

    if isInteracted
    then @setClass 'liked'
    else @unsetClass 'liked'

