Open askolds11 opened 1 year ago
URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-update-data-room#7
In which task and step of the codelab can this issue be found? 8 - Implement sell item - Add delete function in the ItemDetailsViewModel - 6.
Describe the problem The onDelete is missing a bracket and a comma
Additional information
ItemDetailsBody( itemUiState = uiState.value, onSellItem = { viewModel.reduceQuantityByOne() }, onDelete = { coroutineScope.launch { viewModel.deleteItem() } modifier = modifier.padding(innerPadding) )
should be
ItemDetailsBody( itemUiState = uiState.value, onSellItem = { viewModel.reduceQuantityByOne() }, onDelete = { coroutineScope.launch { viewModel.deleteItem() } }, modifier = modifier.padding(innerPadding) )
URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-update-data-room#7
In which task and step of the codelab can this issue be found? 8 - Implement sell item - Add delete function in the ItemDetailsViewModel - 6.
Describe the problem The onDelete is missing a bracket and a comma
Additional information
should be