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);
if (inj) {
if (uriBuffer.indexOf(index) === -1) {
let newUriBUffer = uriBuffer;
newUriBUffer.push(index);
setUriBuffer(newUriBUffer);
const newUriBuffer = uriBuffer;
newUriBuffer.push(index);
setUriBuffer(newUriBuffer);
}
}
}

View file

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