Skip to content

Commit

Permalink
- Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nostrbuddha committed Feb 3, 2025
1 parent facf23b commit 9a74ea7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,5 @@ class SettingsApiGateway(
)
}

suspend fun setSelectedMarket(value: MarketVO): Result<Unit> {
return webSocketApiClient.patch(
basePath,
SettingsChangeRequest(selectedMarket = value)
)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,13 @@ fun BisqTextField(
)
}

var hasInitialized by remember { mutableStateOf(false) }
LaunchedEffect(value) {
validationError = validation?.invoke(value)
onValueChange(value, validationError == null)
if (hasInitialized) {
validationError = validation?.invoke(value)
onValueChange(value, validationError == null)
}
hasInitialized = true
}

Column(modifier = modifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fun GeneralSettingsScreen(showBackNavigation: Boolean = false) {
)

BisqTextField(
label = "settings.trade.maxTradePriceDeviation".i18n(),
label = "settings.trade.maxTradePriceDeviation".i18n() + " (TODO in androidNode)",
value = tradePriceTolerance.toString(),
valueSuffix = "%",
keyboardType = KeyboardType.Decimal,
Expand Down

0 comments on commit 9a74ea7

Please sign in to comment.