Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuwu committed May 17, 2023
1 parent ca5a54b commit 12b7047
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package com.hieuwu.groceriesstore.domain.usecases.impl
import com.hieuwu.groceriesstore.data.repository.OrderRepository
import com.hieuwu.groceriesstore.domain.usecases.GetOrderListUseCase
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.withContext
import timber.log.Timber
import javax.inject.Inject

class GetOrderListUseCaseImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fun OrderHistoryScreen(
) {
Text(
modifier = modifier.padding(4.dp),
text = it.total.toString(),
text = "$ ${it.totalPrice}",
color = Color.White,
style = MaterialTheme.typography.body1,
fontWeight = FontWeight.SemiBold
Expand Down

0 comments on commit 12b7047

Please sign in to comment.