Fix pending delegations in game status

O01eg
Oct 22, 2022, 7:43 PM
4WG6UYDEWOHKZQ6F7EDBWCPEEUDQ4PSYZ74GEJTU5HPFX53FI2TAC

Dependencies

  • [2] V5ULHL43 Implement delegation support
  • [3] 6TPV5GQ3 Show delegates in player table
  • [4] B7PYGLH3 Show delegate bold if it's logged user itself
  • [5] SBYGGRXY Show pending delegates
  • [6] LOFH5LIA Make bold player name
  • [*] 6NYILMKI Add page for slow game

Change contents

  • replacement in src/pages/slow_game.rs at line 197
    [3.1031][3.1848:1935]()
    let pending_delegates = if player_itself && !delegations_from.is_empty() {
    [3.1031]
    [2.860]
    let pending_delegates = if status.map_or(true, |x| x == "started")
    && player_itself
    && !delegations_from.is_empty()
    {
  • replacement in src/pages/slow_game.rs at line 220
    [3.2137][3.2137:2214]()
    } else if delegations_to.contains(&player_name.to_lowercase()) {
    [3.2137]
    [2.1556]
    } else if status.map_or(true, |x| x == "started")
    && delegations_to.contains(&player_name.to_lowercase())
    {