diff --git a/src/service/registration_tokens/data.rs b/src/service/registration_tokens/data.rs index 886f58805..44de694d1 100644 --- a/src/service/registration_tokens/data.rs +++ b/src/service/registration_tokens/data.rs @@ -89,7 +89,7 @@ impl std::fmt::Display for TokenExpires { } }, | Self::AfterTimeOrUses { max_uses, max_age } => { - if *max_uses <= 0 { + if *max_uses == 0 { return write!(f, "Already expired (uses exhausted)"); }