fix: use singular for one coin

This commit is contained in:
Michael Mallan 2025-04-23 12:29:01 +01:00
parent eb45d6ef8f
commit 30aedb3e5b
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB

View File

@ -137,7 +137,7 @@ pub fn recovery_path_view<'a>(
.push(text(format!(
"{} coin{} totalling",
number_of_coins,
if number_of_coins > 0 { "s" } else { "" }
if number_of_coins > 1 { "s" } else { "" }
)))
.push(amount(&total_amount)),
)