From bfca75a606e44c88e6ca0db431a5cd66c5b6e945 Mon Sep 17 00:00:00 2001 From: Abbasali Date: Sat, 17 Aug 2024 11:37:17 +0330 Subject: [PATCH] def value bug fix --- .../src/main/java/ir/wave/composecalculator/Calculator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composeCalculator/src/main/java/ir/wave/composecalculator/Calculator.kt b/composeCalculator/src/main/java/ir/wave/composecalculator/Calculator.kt index fdcf80d..74788a0 100644 --- a/composeCalculator/src/main/java/ir/wave/composecalculator/Calculator.kt +++ b/composeCalculator/src/main/java/ir/wave/composecalculator/Calculator.kt @@ -370,7 +370,7 @@ fun Calculator( private fun InitDefValue( defValue: Double? ) { - if (defValue == null || defValue == 0.0) return + if (defValue == null) return val viewModel = viewModel() val onAction = viewModel::onAction