     .done (data) =>
       @user = data
 
-    .fail (xhr) =>
-      @user = null
+    .fail (xhr) ->
       if xhr.status == 401
         osu.popup osu.trans('errors.logged_out'), 'danger'
 

  onInput: (event) =>
    if !@searching
      @searching = true
      @updateSearchResult()
    @debouncedGetUser(event.currentTarget.value)


  setUserInteraction: (enabled) =>
    StoreCart.setEnabled(enabled)
    # TODO: need to elevate this element when switching over to new store design.
    $(@el).toggleClass('js-store--disabled', !enabled)
    $('.js-slider').slider('disabled': !enabled)


  sliderValue: (price) ->
    price * @RESOLUTION


  updateSearchResult: =>
    if @searching
      $.publish 'store-supporter-tag:update-user', null
      return @setUserInteraction(false)

    $.publish 'store-supporter-tag:update-user', @user
    @updateTargetId()
    @setUserInteraction(@user?.id?)


  updateCostDisplay: =>

    @initializeUsernameInput()
    @updateCostDisplay()

    # force initial values for consistency.
    @updateSearchResult()


  initializeSlider: =>
