aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/send.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/send.js b/lib/send.js
index 98fa4d2c..6aff80c4 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -27,7 +27,7 @@ send = async (amount, memo, hash, user) => {
transaction
});
- if (account.balance < amount) {
+ if (!account || account.balance < amount) {
throw new Error("Insufficient funds");
}