Skip to content

Commit

Permalink
fix: minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveVodrazka committed Dec 9, 2024
1 parent cdaad27 commit 37e78e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/Airdrop/Airdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const StarknetDefispring = () => {
<div className="flex justify-between max-w-big text-dark-secondary bg-light-secondary rounded-md overflow-hidden">
<div className="flex flex-col grow justify-around">
<div className="flex flex-col gap-3 p-5 border-dark-tertiary border-b-[1px]">
<H6 className="text-misc-starknet">Starknet DeFi Spring Rewardp</H6>
<H6 className="text-misc-starknet">Starknet DeFi Spring Rewards</H6>
<P4 className="font-semibold">
40M STRK up for grabs! Provide liquidity to start earning.
</P4>
Expand Down
8 changes: 4 additions & 4 deletions src/components/Governance/Vote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export const VoteButtons = ({ id, balance }: VoteButtonsProps) => {
const handleClick = (opinion: Opinion) =>
vote(sendAsync, address, id, opinion, setProcessing);

if (!address || !balance) {
return null;
}

if (processing || isLoading) {
return (
<div className="flex justify-center items-center h-8">
Expand All @@ -110,10 +114,6 @@ export const VoteButtons = ({ id, balance }: VoteButtonsProps) => {
);
}

if (!address || !balance) {
return null;
}

if (opinion === UserVote.NotVoted) {
// show voting buttons
return (
Expand Down

0 comments on commit 37e78e7

Please sign in to comment.