Skip to content

Commit de483aa

Browse files
committed
hide pay selector when cart is empty
1 parent 144f238 commit de483aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/main/java/io/snabble/sdk/ui/cart/PaymentSelectionHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public boolean shouldShowGooglePayButton() {
433433
}
434434

435435
public boolean shouldShowSmallSelector() {
436-
return selectedEntry.getValue() != null || !shouldShowBigSelector();
436+
return cart.size() > 0 && (selectedEntry.getValue() != null || !shouldShowBigSelector());
437437
}
438438

439439
private void setSelectedEntry(Entry entry) {

0 commit comments

Comments
 (0)