Fixed filtering chipTAN USB as this TAN procedure is not supported on iOS

This commit is contained in:
dankito 2020-07-26 16:32:22 +02:00
parent 70b8a8b84c
commit 62f56977f9
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ struct AccountsTab: View {
NavigationLink(destination: AddAccountDialog()) {
Text("Add account")
}
.padding()
Spacer()
}

View File

@ -37,7 +37,8 @@ struct EnterTanDialog: View {
self.tanChallenge = state.tanChallenge
self.customer = state.customer
self.customersTanProcdures = customer.supportedTanProcedures
self.customersTanProcedures = customer.supportedTanProcedures.filter( {$0.type != .chiptanusb } ) // USB tan generators are not supported on iOS
_selectedTanProcedureIndex = State(initialValue: customer.supportedTanProcedures.firstIndex(of: tanChallenge.tanProcedure) ?? 0)
self.customersTanMedia = customer.tanMediaSorted