fix: show withdraw errors
This commit is contained in:
parent
bd312f553f
commit
0006b16314
@ -57,6 +57,8 @@ export default function AccountWithdrawl({
|
|||||||
if (res.preimage) {
|
if (res.preimage) {
|
||||||
setTopup(false);
|
setTopup(false);
|
||||||
onFinish();
|
onFinish();
|
||||||
|
} else if (res.error) {
|
||||||
|
setError(res.error);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user