diff --git a/.yarnrc b/.yarnrc
index 1109b2427..d5e7dc651 100644
--- a/.yarnrc
+++ b/.yarnrc
@@ -7,4 +7,4 @@ lastUpdateCheck 1700470015338
save-exact true
save-prefix false
workspaces-experimental true
-yarn-path ".yarn/releases/yarn-1.22.21.js"
+# yarn-path ".yarn/releases/yarn-1.22.21.js"
diff --git a/.yarnrc.yml b/.yarnrc.yml
index 615af1809..3186f3f07 100644
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -1,3 +1 @@
nodeLinker: node-modules
-
-yarnPath: .yarn/releases/yarn-4.1.0.cjs
diff --git a/examples/vote-proposal/components/voting/Proposal.tsx b/examples/vote-proposal/components/voting/Proposal.tsx
index f5a3ad5c8..7c0f78f7e 100644
--- a/examples/vote-proposal/components/voting/Proposal.tsx
+++ b/examples/vote-proposal/components/voting/Proposal.tsx
@@ -57,7 +57,7 @@ export function Proposal({
proposal,
chainName,
bondedTokens,
- onVoteSuccess = () => {},
+ onVoteSuccess = () => { },
}: ProposalProps) {
const vote = votes?.[proposal.proposalId.toString()];
@@ -155,8 +155,8 @@ export function Proposal({
borderRadius="$lg"
>
- {timepoints.map((timepoint) => (
-
+ {timepoints.map((timepoint, i) => (
+
- {`Minimum of staked ${minStakedTokens} ${coin.symbol}(${
- quorum * 100
- }%) need to vote
+ {`Minimum of staked ${minStakedTokens} ${coin.symbol}(${quorum * 100
+ }%) need to vote
for this proposal to pass.`}
@@ -269,34 +268,31 @@ export function Proposal({
voteType="yes"
title="Yes"
votePercentage={percent(proposal.finalTallyResult?.yes, total)}
- description={`${
- exponentiate(
- proposal.finalTallyResult?.yes,
- -exponent,
- ).toFixed(2)
- } ${coin.symbol}`}
+ description={`${exponentiate(
+ proposal.finalTallyResult?.yes,
+ -exponent,
+ ).toFixed(2)
+ } ${coin.symbol}`}
/>
diff --git a/examples/vote-proposal/components/voting/Voting.tsx b/examples/vote-proposal/components/voting/Voting.tsx
index e5ad9787d..1d3c05451 100644
--- a/examples/vote-proposal/components/voting/Voting.tsx
+++ b/examples/vote-proposal/components/voting/Voting.tsx
@@ -59,6 +59,7 @@ export function Voting({ chainName }: VotingProps) {
const proposal = data.proposals![index];
openModal();
setProposal(proposal);
+ // @ts-ignore
setTitle(`#${proposal.proposalId?.toString()} ${proposal.content?.title}`);
}
@@ -91,6 +92,7 @@ export function Voting({ chainName }: VotingProps) {
+ {/* @ts-ignore */}
diff --git a/package.json b/package.json
index 6c3e2fdd9..627e20452 100644
--- a/package.json
+++ b/package.json
@@ -41,4 +41,4 @@
"url": "https://github.com/cosmology-tech/create-cosmos-app"
},
"packageManager": "yarn@4.1.0"
-}
+}
\ No newline at end of file