Clean code

This commit is contained in:
Raphael Wickihalder 2022-05-30 06:59:35 +02:00 committed by infinite-persistence
parent c6c824c059
commit 99a36b6bd6
2 changed files with 6 additions and 6 deletions

View file

@ -217,9 +217,9 @@ export default function ClaimList(props: Props) {
const inj = getInjectedItem(index); const inj = getInjectedItem(index);
if (inj) { if (inj) {
if (uriBuffer.indexOf(index) === -1) { if (uriBuffer.indexOf(index) === -1) {
let newUriBUffer = uriBuffer; const newUriBuffer = uriBuffer;
newUriBUffer.push(index); newUriBuffer.push(index);
setUriBuffer(newUriBUffer); setUriBuffer(newUriBuffer);
} }
} }
} }

View file

@ -185,9 +185,9 @@ function ClaimTilesDiscover(props: Props) {
const inj = getInjectedItem(index); const inj = getInjectedItem(index);
if (inj) { if (inj) {
if (uriBuffer.indexOf(index) === -1) { if (uriBuffer.indexOf(index) === -1) {
let newUriBUffer = uriBuffer; const newUriBuffer = uriBuffer;
newUriBUffer.push(index); newUriBuffer.push(index);
setUriBuffer(newUriBUffer); setUriBuffer(newUriBuffer);
} }
} }
} }