From 37e78e74819a92f771bfaa6213f84ff9782f62d9 Mon Sep 17 00:00:00 2001 From: DaveVodrazka Date: Mon, 9 Dec 2024 09:15:50 +0100 Subject: [PATCH] fix: minor issues --- package-lock.json | 8 ++++---- src/components/Airdrop/Airdrop.tsx | 2 +- src/components/Governance/Vote.tsx | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index e48501e..01b2734 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "vite-fe-app", - "version": "0.0.0", + "name": "carmine-options-app", + "version": "2.9.9", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "vite-fe-app", - "version": "0.0.0", + "name": "carmine-options-app", + "version": "2.9.9", "dependencies": { "@avnu/avnu-sdk": "^2.1.1", "@emotion/react": "^11.13.5", diff --git a/src/components/Airdrop/Airdrop.tsx b/src/components/Airdrop/Airdrop.tsx index 36bc953..c264fa5 100644 --- a/src/components/Airdrop/Airdrop.tsx +++ b/src/components/Airdrop/Airdrop.tsx @@ -223,7 +223,7 @@ export const StarknetDefispring = () => {
-
Starknet DeFi Spring Rewardp
+
Starknet DeFi Spring Rewards
40M STRK up for grabs! Provide liquidity to start earning. diff --git a/src/components/Governance/Vote.tsx b/src/components/Governance/Vote.tsx index 4f8266f..dc65877 100644 --- a/src/components/Governance/Vote.tsx +++ b/src/components/Governance/Vote.tsx @@ -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 (
@@ -110,10 +114,6 @@ export const VoteButtons = ({ id, balance }: VoteButtonsProps) => { ); } - if (!address || !balance) { - return null; - } - if (opinion === UserVote.NotVoted) { // show voting buttons return (