When adding the function reduceQuantityByOne() in step: 3
The instructions say to create a variable this way val currentItem = uiState.value.toItem(). The correct way is val currentItem = uiState.value.itemDetails.toItem(). The itemDetails property is missing.
URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room#7
When adding the function
reduceQuantityByOne()
in step: 3The instructions say to create a variable this way
val currentItem = uiState.value.toItem()
. The correct way isval currentItem = uiState.value.itemDetails.toItem()
. TheitemDetails
property is missing.