mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
deprettify error messages
This commit is contained in:
parent
957a6d63ae
commit
54d8e90c96
1 changed files with 3 additions and 3 deletions
|
@ -476,8 +476,7 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
|||
} else {
|
||||
return StackDialog(
|
||||
title: "Simplex API error",
|
||||
message:
|
||||
"${quoteResponse.exception?.errorMessage.substring(19, quoteResponse.exception?.errorMessage?.length ?? 109 - (14 + 19))}",
|
||||
message: "${quoteResponse.exception?.errorMessage}",
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
|
@ -565,7 +564,8 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
|||
} else {
|
||||
return StackDialog(
|
||||
title: "Simplex API error",
|
||||
message: errorMessage,
|
||||
message: "${quoteResponse.exception?.errorMessage}",
|
||||
// "${quoteResponse.exception?.errorMessage.substring(8, (quoteResponse.exception?.errorMessage?.length ?? 109) - (8 + 6))}",
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
|
|
Loading…
Reference in a new issue