Fix years in affiliate program creation.

This commit is contained in:
John Preston 2025-01-09 22:38:18 +04:00
parent dc9fa9ccf2
commit c3587ff46f

View file

@ -692,7 +692,7 @@ void InnerWidget::setupDuration() {
return (value < 12)
? tr::lng_months_tiny(tr::now, lt_count, value)
: (value < 999)
? tr::lng_years_tiny(tr::now, lt_count, value)
? tr::lng_years_tiny(tr::now, lt_count, value / 12)
: QString::fromUtf8("\xE2\x88\x9E"); // utf-8 infinity
};
_container->add(