Skip to content

Commit

Permalink
fix: default to 'Individual' bank account type
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecruzan-stripe committed Feb 8, 2022
1 parent 0ac0ced commit bf363b8
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 97 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/reactnativestripesdk/Mappers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ internal fun mapFromBankAccountType(type: BankAccount.Type?): String {
}
}

internal fun mapToBankAccountType(type: String?): BankAccountTokenParams.Type? {
internal fun mapToBankAccountType(type: String?): BankAccountTokenParams.Type {
return when (type) {
"Company" -> BankAccountTokenParams.Type.Company
"Individual" -> BankAccountTokenParams.Type.Individual
else -> null
else -> BankAccountTokenParams.Type.Individual
}
}

Expand Down
Loading

0 comments on commit bf363b8

Please sign in to comment.