fix: clarify available recovery paths wording

The previous wording could be misleading for recovery paths that
had already been available since many blocks ago.

For the user, it's enough to know that the path is available, i.e.
a spend on this recovery path can be created and broadcast.
This commit is contained in:
Michael Mallan 2025-04-23 12:20:50 +01:00
parent 1213858489
commit ea8e8453d7
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB

View File

@ -48,8 +48,13 @@ pub fn recovery<'a>(
Column::new()
.spacing(20)
.push(text(format!(
"{} recovery paths will be available at the next block, select one:",
recovery_paths.len()
"{} recovery path{} available:",
recovery_paths.len(),
if recovery_paths.len() > 1 {
"s are"
} else {
" is"
},
)))
.push(Column::with_children(recovery_paths).spacing(20)),
)