Open AscentionOne opened 1 year ago
In section 8 "Implement sell item" Add a function in the ViewModel part step 3.
We are creating a val currentItem and the provided snippet val currentItem = uiState.value.toItem() is incorrect.
val currentItem
val currentItem = uiState.value.toItem()
The correct one should be: val currentItem = uiState.value.itemDetails.toItem()
val currentItem = uiState.value.itemDetails.toItem()
The itemDetails is missing,
itemDetails
In section 8 "Implement sell item" Add a function in the ViewModel part step 3.
We are creating a
val currentItem
and the provided snippetval currentItem = uiState.value.toItem()
is incorrect.The correct one should be:
val currentItem = uiState.value.itemDetails.toItem()
The
itemDetails
is missing,