From 2760e485cef66ca02b4164b97d11ca1adaa78e0e Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 7 Jun 2023 20:23:00 +1000 Subject: [PATCH] main: Fixed error check --- FireWallet/MainForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FireWallet/MainForm.cs b/FireWallet/MainForm.cs index 0b16e82..79255b6 100644 --- a/FireWallet/MainForm.cs +++ b/FireWallet/MainForm.cs @@ -984,12 +984,13 @@ namespace FireWallet amount.ToString() + ", \"\", \"\", " + subtractFee + " ]}"; string output = await APIPost("", true, content); JObject APIresp = JObject.Parse(output); - if (APIresp["error"].ToString() == "null") + if (APIresp["error"].ToString() != "") { NotifyForm notify = new NotifyForm("Error Transaction Failed"); notify.ShowDialog(); return; } + AddLog(APIresp.ToString()); string hash = APIresp["result"].ToString(); string link = userSettings["explorer-tx"] + hash; NotifyForm notifySuccess = new NotifyForm("Transaction Sent\nThis transaction could take up to 20 minutes to mine",