From 717eea4c86528f7375516ddca49f731e6da75eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=CC=87lker=20K=C4=B1zg=C4=B1n?= Date: Mon, 12 Feb 2024 11:17:09 +0100 Subject: [PATCH] fixes the bug by using intOrNull --- .../com/fintecsystems/xs2awizard/form/components/RadioLine.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/RadioLine.kt b/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/RadioLine.kt index 40bf8f5..61ad90e 100644 --- a/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/RadioLine.kt +++ b/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/RadioLine.kt @@ -76,7 +76,7 @@ fun LabelledRadioButton( fun RadioLine(formData: RadioLineData) { var selectedValue by remember { mutableStateOf( - formData.value?.jsonPrimitive?.int ?: 0 + formData.value?.jsonPrimitive?.intOrNull ?: 0 ) }