     )
 
   remoteAdjustmentUpdated: (resp) ->
-    if resp.adjustment_name
+    discount = resp.adjustment_name
+    if discount
       @subtotalsRow.fadeIn(200)
       @adjustmentRow.fadeIn(200)
     else

    # Total row handling
    @setTotals(resp)

  discountCodeUpdated: ->
    @update(
      'update-discount-code'


    # Total row handling
    @setTotals(resp)

    @container.trigger('discount-updated.glysellin', [discount])

  update: (action, options, callback) ->
    $.post(
