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); } } }