Webpage Button Lang: Fix lang for auction (#6552)
This commit is contained in:
parent
7089182a81
commit
a65579439c
@ -41,7 +41,7 @@ export function getWebpageButtonLangKey(type?: string, auctionEndDate?: number):
|
|||||||
case 'telegram_nft':
|
case 'telegram_nft':
|
||||||
return 'ViewButtonGiftUnique';
|
return 'ViewButtonGiftUnique';
|
||||||
case 'telegram_auction': {
|
case 'telegram_auction': {
|
||||||
const isFinished = auctionEndDate !== undefined && auctionEndDate * 1000 < getServerTime();
|
const isFinished = auctionEndDate !== undefined && auctionEndDate < getServerTime();
|
||||||
return isFinished ? 'PollViewResults' : 'GiftAuctionJoin';
|
return isFinished ? 'PollViewResults' : 'GiftAuctionJoin';
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user