mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +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 {
|
} else {
|
||||||
return StackDialog(
|
return StackDialog(
|
||||||
title: "Simplex API error",
|
title: "Simplex API error",
|
||||||
message:
|
message: "${quoteResponse.exception?.errorMessage}",
|
||||||
"${quoteResponse.exception?.errorMessage.substring(19, quoteResponse.exception?.errorMessage?.length ?? 109 - (14 + 19))}",
|
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
|
@ -565,7 +564,8 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
||||||
} else {
|
} else {
|
||||||
return StackDialog(
|
return StackDialog(
|
||||||
title: "Simplex API error",
|
title: "Simplex API error",
|
||||||
message: errorMessage,
|
message: "${quoteResponse.exception?.errorMessage}",
|
||||||
|
// "${quoteResponse.exception?.errorMessage.substring(8, (quoteResponse.exception?.errorMessage?.length ?? 109) - (8 + 6))}",
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
|
|
Loading…
Reference in a new issue