Skip to content

Commit 2c81bc9

Browse files
author
burak.ozturk1
committed
Remove redundant loading state check in QuantityAddIcon onClick handler
1 parent 9b2dbaa commit 2c81bc9

File tree

1 file changed

+0
-4
lines changed
  • libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker

1 file changed

+0
-4
lines changed

libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker/QuantityAddIcon.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ internal fun QuantityAddIcon(
7979
interactionSource = MutableInteractionSource(),
8080
enabled = quantityData.isAddButtonEnabled(),
8181
onClick = {
82-
if (quantityData.currentQuantity == 0 && showLoading.not()) {
83-
setTargetBackgroundColor.invoke(Color.White)
84-
iconTintColor = icons.iconColor
85-
}
8682
onAddClick?.invoke()
8783
}
8884
)

0 commit comments

Comments
 (0)