Fix Play Now button
This commit is contained in:
parent
d5a5daaea7
commit
ccfe047ff3
@ -5,7 +5,7 @@ class TablesController < ApplicationController
|
|||||||
|
|
||||||
def play_now
|
def play_now
|
||||||
# First empty seat
|
# 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
|
if @seat
|
||||||
@seat.sit current_user
|
@seat.sit current_user
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user