Fix Play Now button
This commit is contained in:
parent
4602bd18f2
commit
03bbc8e21f
@ -5,7 +5,7 @@ class TablesController < ApplicationController
|
||||
|
||||
def play_now
|
||||
# First empty seat
|
||||
@seat = Seat.where(user_soft_token: nil).first
|
||||
@seat = Seat.where(user_soft_token: nil).select{|s| !s.player.try("is_bot?")}.first
|
||||
if @seat
|
||||
@seat.sit current_user
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user