Support TON balance (follow-up)

This commit is contained in:
Alexander Zinchuk 2025-07-29 16:51:39 +02:00
parent 7a704c79a7
commit f54979488e

View File

@ -72,7 +72,7 @@ const StarsBalanceModal = ({
const currency = modal?.currency || STARS_CURRENCY_CODE;
const currentState = currency === TON_CURRENCY_CODE ? tonBalanceState : starsBalanceState;
const { balance, history } = currentState || {};
const { subscriptions } = starsBalanceState || {};
const { subscriptions } = (currency === TON_CURRENCY_CODE && starsBalanceState) || {};
const oldLang = useOldLang();
const lang = useLang();
@ -277,7 +277,7 @@ const StarsBalanceModal = ({
});
const handleTonTopUp = useLastCallback(() => {
openUrl({ url: tonTopupUrl });
openUrl({ url: tonTopupUrl, shouldSkipModal: true });
});
return (