During the resolution of #21 it was revealed that seatsSlice.update_table() did not work properly if the provided table was empty. This bug surfaced when removing the last player form a table through the client UI.
The resolution was to skip the logic of the the update_table() function if the argument table, the array of seats that need to be reordered, was undefined or empty.
Create a regression test to guard against the reappearance of this bug.
During the resolution of #21 it was revealed that
seatsSlice.update_table()
did not work properly if the provided table was empty. This bug surfaced when removing the last player form a table through the client UI.The resolution was to skip the logic of the the
update_table()
function if the argumenttable
, the array of seats that need to be reordered, was undefined or empty.Create a regression test to guard against the reappearance of this bug.