 
     get_first_account: ->
         for k,v of @accounts
-            if v.is_my_account
-                return v
+            return v
         return null
 
     get_current_or_first_account: ->

                        @asset_balances[asset_id] = @asset_balances[asset_id] + amount
            angular.forEach @accounts, (acct) =>
                #console.log "------ refresh_balances acct.name ------>", acct.name
                if acct.is_my_account and !@balances[acct.name]
                    @balances[acct.name] = {}
                    @balances[acct.name][@main_asset.symbol] = @utils.asset(0, @main_asset)
            deffered.resolve(@balances)

#            if @transactions["*"].length > 0
#                #@growl.notice "", "You just received a new transaction!"
#                angular.forEach @accounts, (account, name) =>
#                    @refresh_transactions(name)
#
#    # TODO: search for all deposit_op_type with asset_id 0 and sum them to get amount
#    # TODO: sort transactions, show the most recent ones on top
