Skip to content

Commit

Permalink
Fixed react warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
macterra committed Oct 16, 2023
1 parent dfe64a3 commit 3a224d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/TokenHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const TokenHistory = ({ metadata, xid }) => {
};

fetchHistory();
}, [metadata]);
}, [metadata, xid]);

if (!metadata || !history) {
return;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/TokenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const TokenView = ({ metadata, setTab, setRefreshKey }) => {

setNfts(nfts);
setOwned(owned);
setOwnAll(metadata.userIsOwner && owned == metadata.token.editions);
setOwnAll(metadata.userIsOwner && owned === metadata.token.editions);
setRanges(convertToRanges(ownedEditions));

} catch (error) {
Expand Down Expand Up @@ -139,7 +139,7 @@ const TokenView = ({ metadata, setTab, setRefreshKey }) => {
<TableRow>
<TableCell>Creator:</TableCell>
<TableCell>
<AgentBadge xid={metadata.asset.owner} />
<AgentBadge xid={metadata.asset.owner} />
</TableCell>
</TableRow>
<TableRow>
Expand Down

0 comments on commit 3a224d4

Please sign in to comment.