From e0d3cb431b66735b521b037af32e45428e495f84 Mon Sep 17 00:00:00 2001 From: hackrush Date: Tue, 5 Dec 2017 20:15:35 +0530 Subject: [PATCH] Claim page abandon(regression) fixed --- CHANGELOG.md | 1 + src/renderer/js/redux/actions/file_info.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cae3c17e6..1273376a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Web UI version numbers should always match the corresponding version of LBRY App * Fixed scriolling restore/reset/set (#729) * Fixed sorting by title for published files (#614) * App now uses the new balance_delta field in the txn list. + * Abandoning from the claim page now works. * ### Deprecated diff --git a/src/renderer/js/redux/actions/file_info.js b/src/renderer/js/redux/actions/file_info.js index 84062ee23..89e50386f 100644 --- a/src/renderer/js/redux/actions/file_info.js +++ b/src/renderer/js/redux/actions/file_info.js @@ -102,8 +102,8 @@ export function doDeleteFile(outpoint, deleteFromComputer, abandonClaim) { const fileInfo = byOutpoint[outpoint]; if (fileInfo) { - txid = fileInfo.outpoint.slice(0, -2); - nout = fileInfo.outpoint.slice(-1); + const txid = fileInfo.outpoint.slice(0, -2); + const nout = fileInfo.outpoint.slice(-1); dispatch(doAbandonClaim(txid, nout)); }