This commit is contained in:
Alexey 2019-10-17 20:02:13 +03:00
parent 9449e2a8b6
commit d7583107bc
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ app.post('/relay', async (req, resp) => {
let desiredFee
switch (currency) {
case 'eth': {
if (refund !== 0) {
if (!refund.isZero()) {
return resp.status(400).json({ error: 'Cannot send refund for eth currency.' })
}
desiredFee = expense