Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Fix issue 2927 (Crash Issue) #2934

Merged
merged 7 commits into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import androidx.compose.ui.unit.sp
import com.ivy.design.l0_system.UI
import com.ivy.design.l0_system.style
import com.ivy.legacy.IvyWalletPreview
import com.ivy.legacy.data.model.AccountData
import com.ivy.legacy.datamodel.Account
import com.ivy.legacy.utils.clickableNoIndication
import com.ivy.legacy.utils.horizontalSwipeListener
Expand Down Expand Up @@ -113,9 +112,9 @@ private fun BoxWithConstraintsScope.UI(
IncomeExpensesRow(
currency = state.baseCurrency,
incomeLabel = stringResource(id = R.string.total_balance),
income = state.totalBalanceWithoutExcluded.toDouble(),
income = state.totalBalanceWithoutExcluded.toDoubleOrNull() ?: 0.00,
expensesLabel = stringResource(id = R.string.total_balance_excluded),
expenses = state.totalBalanceWithExcluded.toDouble()
expenses = state.totalBalanceWithExcluded.toDoubleOrNull() ?: 0.00
)
}

Expand Down