Skip to content

Commit 0995434

Browse files
committed
fix: localize error
1 parent 281d62f commit 0995434

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

app/src/main/java/to/bitkit/ui/settings/advanced/RgsServerScreen.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ fun RgsServerScreen(
7474
} else {
7575
toaster.error(
7676
title = ToastText(R.string.wallet__ldk_start_error_title),
77-
body = ToastText(result.exceptionOrNull()?.message ?: "Unknown error"),
77+
body = result.exceptionOrNull()?.message
78+
?.let { ToastText(it) }
79+
?: ToastText(R.string.common__error_body),
7880
testTag = "RgsErrorToast",
7981
)
8082
}
@@ -133,7 +135,9 @@ private fun Content(
133135
value = uiState.rgsUrl,
134136
onValueChange = onChangeUrl,
135137
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done),
136-
modifier = Modifier.fillMaxWidth().testTag("RGSUrl")
138+
modifier = Modifier
139+
.fillMaxWidth()
140+
.testTag("RGSUrl")
137141
)
138142

139143
FillHeight()

0 commit comments

Comments
 (0)