Skip to content

Commit

Permalink
front-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luckerninja committed Jul 23, 2023
1 parent 0f7837b commit 1bf0cb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 0 additions & 2 deletions frontend/MintScore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ return (
Ethers.provider().getSigner()
);

console.log(contract.tokenURI(0));

contract.mint(sender, {
GitcoinScore: dataParsed.scores.gitcoin_score.toFixed(2),
WalletData: dataParsed.scores.wallet_data.toFixed(2),
Expand Down
14 changes: 9 additions & 5 deletions frontend/ScoresPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const ScoreInfo = styled.div`
justify-content: center;
flex-wrap: wrap;
width: 60%;
min-width: 400px;
background-color: #2C2C2C;
border: 3px white solid;
Expand Down Expand Up @@ -133,14 +134,15 @@ const Scores = styled.div`
const ScoresContainer = styled.div`
display: flex;
align-items: center;
width: 100%;
button {
background-color: #BDFF00!important;
color: black!important;
}
`;

if (sender) {
if (sender && dataParsed.scores) {
return (
<Wrapper>
<div className="Logo">
Expand Down Expand Up @@ -196,16 +198,16 @@ if (sender) {
</div>
<div className="scoreContainer">
<div>
Followers <span>{state.wallet.nfts}</span>
Followers <span>1</span>
</div>
<div>
Following <span>{state.wallet.tokens}</span>
Following <span>1</span>
</div>
<div>
Comments <span>{state.wallet.walletAge}</span>
Comments <span>1</span>
</div>
<div>
Posts <span>{state.wallet.guilds}</span>
Posts <span>1</span>
</div>
</div>
<hr />
Expand Down Expand Up @@ -237,3 +239,5 @@ if (sender) {
);
}



0 comments on commit 1bf0cb0

Please sign in to comment.