Skip to content

Commit c3587ff

Browse files
committed
Fix years in affiliate program creation.
1 parent dc9fa9c commit c3587ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Telegram/SourceFiles/info/bot/starref/info_bot_starref_setup_widget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ void InnerWidget::setupDuration() {
692692
return (value < 12)
693693
? tr::lng_months_tiny(tr::now, lt_count, value)
694694
: (value < 999)
695-
? tr::lng_years_tiny(tr::now, lt_count, value)
695+
? tr::lng_years_tiny(tr::now, lt_count, value / 12)
696696
: QString::fromUtf8("\xE2\x88\x9E"); // utf-8 infinity
697697
};
698698
_container->add(

0 commit comments

Comments
 (0)