Webpage Button Lang: Fix lang for auction (#6552)

This commit is contained in:
Alexander Zinchuk 2025-12-23 13:26:50 +01:00
parent 7089182a81
commit a65579439c

View File

@ -41,7 +41,7 @@ export function getWebpageButtonLangKey(type?: string, auctionEndDate?: number):
case 'telegram_nft':
return 'ViewButtonGiftUnique';
case 'telegram_auction': {
const isFinished = auctionEndDate !== undefined && auctionEndDate * 1000 < getServerTime();
const isFinished = auctionEndDate !== undefined && auctionEndDate < getServerTime();
return isFinished ? 'PollViewResults' : 'GiftAuctionJoin';
}
default: