From d1bcb71ea4d4bdafe4b81fcfbfe78558b7fd8366 Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Wed, 6 Nov 2024 08:57:33 +0000 Subject: [PATCH] gui(installer): fix word plurality when adding keys --- gui/src/installer/view/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/installer/view/mod.rs b/gui/src/installer/view/mod.rs index 7879af34..5cf08385 100644 --- a/gui/src/installer/view/mod.rs +++ b/gui/src/installer/view/mod.rs @@ -1438,7 +1438,7 @@ pub fn defined_threshold<'a>( "{} out of {} key{}", threshold.0, threshold.1, - if threshold.0 > 1 { "s" } else { "" }, + if threshold.1 > 1 { "s" } else { "" }, ))) .push(icon::pencil_icon()), ) @@ -1461,7 +1461,7 @@ pub fn defined_threshold<'a>( "{} out of {} key{}", threshold.0, threshold.1, - if threshold.0 > 1 { "s" } else { "" }, + if threshold.1 > 1 { "s" } else { "" }, ))), ) .padding(10)