Skip to content

Commit

Permalink
MBL-1696: AddOns add button lost state (#2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkariang authored Sep 5, 2024
1 parent 8fcbaf0 commit 209c7d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -75,7 +75,7 @@ fun AddOnsContainer(
quantity: Int = 0
) {

var count by remember { mutableStateOf(quantity) }
var count by rememberSaveable { mutableStateOf(quantity) }

Card(
modifier = Modifier.fillMaxWidth(),
Expand Down

0 comments on commit 209c7d1

Please sign in to comment.