         for item in ['#myprofit', '#nbet', '#nwin', '#npattern', '#wagered']
             $(item).text('Error')
         return
-    console.log(data)
     show_ranking(data.ranking)
     $('#myprofit').text(numcomma(data.profit))
     $('#wagered').text(numcomma(data.wagered))

            when 'ranking' then handle_ranking(data)
            when 'bet-update'
                $('#jackpot').text(data.jackpot)
                if data.maxbet?
                    bet.maxbet = data.maxbet
                    stream.pending_ranking_update = true
            when 'balance' then $('#balance').text(data.balance)
            when 'address'
                login_data.address = data.address

    event.preventDefault()
    if valid_bet()?
        bet.currbet *= 2
        if Number(bet.currbet) > Number(bet.maxbet)
            bet.currbet = bet.maxbet
        else if !amount_re.test(bet.currbet)
            bet.currbet = bet.currbet.toFixed(8)
