edosdigital / issues

Issue tracker repo
0 stars 0 forks source link

[Bug] FFA - Delete (-) round functions deletes the first round created instead of the last round created #181

Open EJNiones opened 8 months ago

EJNiones commented 8 months ago

Describe the bug During an live FFA tournament, using the Delete (-) round functions will delete the first round created instead of the last one. So if 2 rounds were created (Round 1 and Round 2) then admins uses delete round button ( - ), the round 1 page will be deleted instead of round 2 page.

To Reproduce Steps to reproduce the behavior:

  1. As tournament admin, create a live FFA match
  2. Create 2 rounds
  3. On round 1 continue the tournament with participants
  4. Advance participants to round 2
  5. On the admin match page, click on the minus ( - ) round button to delete the last round
  6. Round 1 page will be deleted and the current round 2 page will remain

Expected behavior When using the delete round function, the last round created should be the one deleted first (or the only round to be deleted).

Priority

Tag the priority on the right -> Please only use High when it's actually high

Screenshots https://gyazo.com/7d7ccfcee1d07315489c3e8fb4436049

Tournament URL/ID

https://battle.staging.gosugamers.net/tournament/4c5bqmkjkr5tz3e09k5hfvvbww/2/1

Tournament Type

If it is a tournament relation issue choose the tournament type on the right ->

Additional context Without proper context messages, user admins will always assume that the last round created will be the one remove when using the delete round function.