Skip to content

Commit c923136

Browse files
authored
Fix adding TWINT resulting in error (Apps-1861) (#226)
1 parent 78f83f7 commit c923136

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ All notable changes to this project will be documented in this file.
77
### Removed
88
### Fixed
99

10+
## [0.80.1]
11+
### Fixed
12+
* ui: fix adding TWINT
1013
## [0.80.0]
1114
### Removed
1215
* core: SSL Pinning has been removed

ui/src/main/java/io/snabble/sdk/ui/payment/creditcard/datatrans/ui/DatatransViewModel.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ internal class DatatransViewModel(
6767
is SavedCard -> DatatransToken(savedPaymentMethod, savedPaymentMethod.cardExpiryDate)
6868

6969
else -> {
70-
if (savedPaymentMethod != null) DatatransToken(savedPaymentMethod)
71-
null
70+
if (savedPaymentMethod != null) {
71+
DatatransToken(savedPaymentMethod)
72+
} else {
73+
null
74+
}
7275
}
7376
}
7477
when {

0 commit comments

Comments
 (0)