From 4adb7dde38bcae0cfca3ff8ce922d178783f8a34 Mon Sep 17 00:00:00 2001 From: Nikita Masych <92444221+NikitaMasych@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:30:07 +0300 Subject: [PATCH] fix: correct is_launched for Party if status is None (#17) --- src/party.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/party.rs b/src/party.rs index 7e78c8a..bf2390c 100644 --- a/src/party.rs +++ b/src/party.rs @@ -207,7 +207,7 @@ impl> Party { /// # Returns /// - `true` if the ballot is currently active; `false` otherwise. pub fn is_launched(&self) -> bool { - !self.is_stopped() + !(self.is_stopped() || self.status == PartyStatus::None) } /// Checks if the ballot process has been stopped.