diff --git a/app.js b/app.js index d1cbbdd..3f6930c 100644 --- a/app.js +++ b/app.js @@ -611,7 +611,7 @@ const doGild = function(message, callback) { return cb(null, null); }, (data, cb) => { - if (gilddata) { + if (data) { return sendGild(data.sender, data.recipient, data.amountLbc, data, cb); }