diff --git a/src/components/right/statistics/BoostStatistics.tsx b/src/components/right/statistics/BoostStatistics.tsx index 44867ce2a..818266a9f 100644 --- a/src/components/right/statistics/BoostStatistics.tsx +++ b/src/components/right/statistics/BoostStatistics.tsx @@ -3,7 +3,7 @@ import React, { } from '../../../lib/teact/teact'; import { getActions, withGlobal } from '../../../global'; -import type { ApiBoostStatistics, ApiPrepaidGiveaway } from '../../../api/types'; +import type { ApiBoost, ApiBoostStatistics, ApiPrepaidGiveaway } from '../../../api/types'; import type { TabState } from '../../../global/types'; import { @@ -163,7 +163,7 @@ const BoostStatistics = ({ )); - const renderBoostTypeIcon = useLastCallback((boost) => { + const renderBoostTypeIcon = useLastCallback((boost: ApiBoost) => { if (!boost.isFromGiveaway && !boost.isGift) { return undefined; } @@ -171,12 +171,12 @@ const BoostStatistics = ({ return (
-
{lang(boost.giveaway +
{lang(boost.isFromGiveaway ? 'lng_prizes_results_link' : 'BoostingGift')}