Skip to content

Commit be2b744

Browse files
committed
chore: update logging
1 parent f507057 commit be2b744

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeCustomScreen.kt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.height
66
import androidx.compose.foundation.layout.navigationBarsPadding
77
import androidx.compose.foundation.layout.padding
88
import androidx.compose.runtime.Composable
9+
import androidx.compose.runtime.LaunchedEffect
910
import androidx.compose.runtime.getValue
1011
import androidx.compose.ui.Modifier
1112
import androidx.compose.ui.platform.testTag
@@ -39,12 +40,22 @@ fun SendFeeCustomScreen(
3940
) {
4041
val uiState by viewModel.uiState.collectAsStateWithLifecycle()
4142

43+
LaunchedEffect(uiState.isCustomFeeValid, uiState.custom) {
44+
if (uiState.isCustomFeeValid == true) {
45+
uiState.custom?.let { onContinue(it) }
46+
}
47+
}
48+
4249
Content(
4350
input = uiState.input,
4451
totalFeeText = uiState.totalFeeText,
4552
onKeyPress = viewModel::onKeyPress,
4653
onBack = onBack,
47-
onContinue = { uiState.custom?.let { onContinue(it) } },
54+
onContinue = {
55+
uiState.custom?.let {
56+
viewModel.validateAndProceed()
57+
}
58+
},
4859
)
4960
}
5061

0 commit comments

Comments
 (0)