fix: delete old cart classes causing redeclaration and type mismatch
This commit is contained in:
1 parent
7334f326a3
commit
823080245d
3 files changed
+1
-50
No files matched your search
@@ -141,7 +141,7 @@ fun App() {
|
||||
when {
|
||||
inDetail -> ProductDetailScreen(
|
||||
product = selected,
|
||||
quantity = selected?.let { id -> cartItems.firstOrNull { it.productId == id.id }?.quantity } ?: 0,
|
||||
quantity = selected?.let { p -> cartItems.firstOrNull { it.productId == p.id }?.quantity } ?: 0,
|
||||
onAdd = {
|
||||
cartRepository.add(it.id)
|
||||
tick++
|
||||
|
||||
Reference in new issue
Block a user