From 99a36b6bd69cb2a56e6a4619ed7c09d855f1c926 Mon Sep 17 00:00:00 2001 From: Raphael Wickihalder Date: Mon, 30 May 2022 06:59:35 +0200 Subject: [PATCH] Clean code --- ui/component/claimList/view.jsx | 6 +++--- ui/component/claimTilesDiscover/view.jsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/component/claimList/view.jsx b/ui/component/claimList/view.jsx index 6afdd6576..0d97ef76b 100644 --- a/ui/component/claimList/view.jsx +++ b/ui/component/claimList/view.jsx @@ -217,9 +217,9 @@ export default function ClaimList(props: Props) { const inj = getInjectedItem(index); if (inj) { if (uriBuffer.indexOf(index) === -1) { - let newUriBUffer = uriBuffer; - newUriBUffer.push(index); - setUriBuffer(newUriBUffer); + const newUriBuffer = uriBuffer; + newUriBuffer.push(index); + setUriBuffer(newUriBuffer); } } } diff --git a/ui/component/claimTilesDiscover/view.jsx b/ui/component/claimTilesDiscover/view.jsx index f45df61ee..748a93ef4 100644 --- a/ui/component/claimTilesDiscover/view.jsx +++ b/ui/component/claimTilesDiscover/view.jsx @@ -185,9 +185,9 @@ function ClaimTilesDiscover(props: Props) { const inj = getInjectedItem(index); if (inj) { if (uriBuffer.indexOf(index) === -1) { - let newUriBUffer = uriBuffer; - newUriBUffer.push(index); - setUriBuffer(newUriBUffer); + const newUriBuffer = uriBuffer; + newUriBuffer.push(index); + setUriBuffer(newUriBuffer); } } }