File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
app/src/main/java/to/bitkit/ui/screens/wallets/send Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.height
66import androidx.compose.foundation.layout.navigationBarsPadding
77import androidx.compose.foundation.layout.padding
88import androidx.compose.runtime.Composable
9+ import androidx.compose.runtime.LaunchedEffect
910import androidx.compose.runtime.getValue
1011import androidx.compose.ui.Modifier
1112import 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
You can’t perform that action at this time.
0 commit comments