         account_store = redux.getStore('account')
         if not account_store?
             return <Loading/>
+
         purchased_upgrades = account_store.get_total_upgrades()
         if misc.is_zero_map(purchased_upgrades)
             # user has no upgrades on their account

            <hr/>
            {@render_upgrade_rows(purchased_upgrades, applied_upgrades, num_projects, total_upgrades, your_upgrades)}
            {@render_upgrade_submit_buttons()}
        </Alert>

    render_upgrade_submit_buttons: ->
        <ButtonToolbar>

            for project_id in store.get_student_project_ids()
                redux.getActions('projects').apply_upgrades_to_project(project_id, upgrades)
            @set_activity(id:id)

        # Do an admin upgrade to all student projects.  This changes the base quotas for every student
        # project as indicated by the quotas object.  E.g., to increase the core quota from 1 to 2, do
        #         .admin_upgrade_all_student_projects(cores:2)
        # The quotas are: cores, cpu_shares, disk_quota, memory, mintime, network, member_host
        admin_upgrade_all_student_projects: (quotas) =>
            if not redux.getStore('account').get('groups')?.contains('admin')
                console.warn("must be an admin to upgrade")
                return
            store = get_store()
            if not store?
                console.warn('unable to get store')
                return
            f = (project_id, cb) =>
                x = misc.copy(quotas)
                x.project_id = project_id
                x.cb = (err, mesg) =>
                    if err or mesg.event == 'error'
                        console.warn("failed to set quotas for #{project_id} -- #{misc.to_json(mesg)}")
                    else
                        console.log("set quotas for #{project_id}")
                    cb(err)
                salvus_client.project_set_quotas(x)
            async.mapLimit store.get_student_project_ids(), 5, f, (err) =>
                if err
                    console.warn("FAIL -- #{err}")
                else
                    console.log("SUCCESS")

        set_student_note: (student, note) =>
            store = get_store()
