Skip to content

Commit

Permalink
Merge pull request #12 from FinTecSystems/fix-checkbox-request
Browse files Browse the repository at this point in the history
Fix checkbox request
  • Loading branch information
maik-mursall authored Mar 17, 2023
2 parents c9b0751 + 84e5c60 commit 66c7548
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
GROUP=com.fintecsystems
VERSION_NAME=5.0.0
VERSION_NAME=5.0.1
POM_URL=https://github.com/FinTecSystems/xs2a-android
POM_SCM_URL=[email protected]:FinTecSystems/xs2a-android.git
POM_SCM_CONNECTION=scm:git:[email protected]:FinTecSystems/xs2a-android.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ class XS2AWizardViewModel(
internal fun constructJsonBody(action: String, values: JsonObject? = null) = buildJsonObject {
form.value?.forEach {
if (it is ValueFormLineData) {
if (it is CheckBoxLineData && it.value?.jsonPrimitive?.booleanOrNull != true) {
return@forEach
}

put(
it.name,
it.value?.jsonPrimitive ?: JsonNull
Expand Down

0 comments on commit 66c7548

Please sign in to comment.