       .catch (error) =>
         console?.warn 'Failed to save classification:', error
         @queueClassification classification
-
-      classificationsThisSession += 1
-      @maybePromptToSignIn()
 
     return savingClassification
 

FinishedBanner = require './finished-banner'
Classifier = require '../../classifier'
alert = require '../../lib/alert'
SignInPrompt = require '../../partials/sign-in-prompt'
seenThisSession = require '../../lib/seen-this-session'

FAILED_CLASSIFICATION_QUEUE_NAME = 'failed-classifications'

PROMPT_TO_SIGN_IN_AFTER = [5, 10, 25, 50, 100, 250, 500]

SKIP_CELLECT = location?.search.match(/\Wcellect=0(?:\W|$)/)?

if SKIP_CELLECT
  console?.warn 'Intelligent subject selection disabled'

classificationsThisSession = 0

auth.listen ->
  classificationsThisSession = 0

# Map each project ID to a promise of its last randomly-selected workflow ID.
# This is to maintain the same random workflow for each project when none is specified by the user.

          .catch (error) =>
            console?.error 'Failed to save a queued classification:', error

  loadAnotherSubject: ->
    @getCurrentWorkflow(@props).then (workflow) =>
      # Forget the old classification so a new one will load.
