Skip to content

Commit

Permalink
fix: Fix retry button on merch error screen (#80)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Strat <[email protected]>
  • Loading branch information
evan10s and evan10s authored Sep 10, 2024
1 parent 950d282 commit 8478042
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class MerchandiseViewModel @Inject constructor(
@Suppress("TooGenericExceptionCaught")
fun selectMerchandiseItemForDistribution(itemId: Int) {
loadingMerchandiseItems.value = true
error.value = null
viewModelScope.launch {
merchandiseRepository.getMerchandiseItem(itemId).onSuccess {
selectedItem.value = this.data.merchandise
Expand Down

0 comments on commit 8478042

Please sign in to comment.