Updated on 2026-08-14

This commit is contained in:
Tangem 2025-03-11 10:02:52 +03:00
parent f9cc3decfb
commit 08d3e18b3e
3 changed files with 16 additions and 13 deletions

View file

@ -575,18 +575,19 @@ internal class TokenDetailsViewModel @Inject constructor(
override fun onReceiveClick(unavailabilityReason: ScenarioUnavailabilityReason) {
val networkAddress = cryptoCurrencyStatus?.value?.networkAddress ?: return
analyticsEventsHandler.send(
TokenScreenAnalyticsEvent.ButtonWithParams.ButtonReceive(
token = cryptoCurrency.symbol,
blockchain = cryptoCurrency.network.name,
status = unavailabilityReason.toReasonAnalyticsText(),
),
)
if (handleUnavailabilityReason(unavailabilityReason = unavailabilityReason)) {
return
}
viewModelScope.launch(dispatchers.main) {
analyticsEventsHandler.send(
TokenScreenAnalyticsEvent.ButtonWithParams.ButtonReceive(
token = cryptoCurrency.symbol,
blockchain = cryptoCurrency.network.name,
status = unavailabilityReason.toReasonAnalyticsText(),
),
)
viewModelScope.launch {
analyticsEventsHandler.send(TokenReceiveAnalyticsEvent.ReceiveScreenOpened(cryptoCurrency.symbol))
internalUiState.value = stateFactory.getStateWithReceiveBottomSheet(