From 1d933be5a67ec5de1a2a3906f8ad1fbd1af074fd Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 10 Apr 2017 15:57:38 +0200 Subject: [PATCH] make reset return the hash, not an array with containing it --- www/common/pinpad.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/pinpad.js b/www/common/pinpad.js index 420b65452..edf542973 100644 --- a/www/common/pinpad.js +++ b/www/common/pinpad.js @@ -50,7 +50,9 @@ define([ // if local and remote hashes don't match, send a reset exp.reset = function (list, cb) { - rpc.send('RESET', list, cb); + rpc.send('RESET', list, function (e, response) { + cb(e, response[0]); + }); }; // get the total stored size of a channel's patches (in bytes)