Skip to content

Commit

Permalink
fix: hide recent buttons without score id
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed Feb 1, 2024
1 parent f749a72 commit 5dc1f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bathbot/src/active/impls/edit_on_timeout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ struct ButtonData {

impl ButtonData {
fn with_miss_analyzer(&self) -> bool {
self.with_miss_analyzer_button
self.score_id.is_some() && self.with_miss_analyzer_button
}

fn take_miss_analyzer(&mut self) -> Option<u64> {
Expand All @@ -496,7 +496,7 @@ impl ButtonData {
}

fn with_render(&self) -> bool {
self.replay_score.is_some()
self.score_id.is_some() && self.replay_score.is_some()
}

fn borrow_mut_render(&mut self) -> (Option<u64>, &mut Option<OwnedReplayScore>) {
Expand Down

0 comments on commit 5dc1f91

Please sign in to comment.