show ordinal if card template missing

This commit is contained in:
Damien Elmes 2020-08-10 13:41:22 +10:00
parent dd2edee3b3
commit e6e9cb348e

View File

@ -97,7 +97,7 @@ impl Collection {
nt.templates
.get(*ord as usize)
.map(|t| t.name.clone())
.unwrap_or_default()
.unwrap_or_else(|| format!("Card {}", *ord + 1))
})
.collect::<Vec<_>>()
.join(", "),