Skip to content

Commit

Permalink
[#133] fix formatting
Browse files Browse the repository at this point in the history
ok this should work, finally :')
  • Loading branch information
goblinodds committed Jan 3, 2024
1 parent a5da733 commit c678b90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions components/certificate/holdingsChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export function HoldingsChart({ holdings, issuers }: HoldingsChartProps) {
label: valueAvailableFromIssuers.gte(30)
? `${num(valueAvailableFromIssuers, 0)}% available`
: valueAvailableFromIssuers.gte(10)
? `${num(valueAvailableFromIssuers, 0)}%`
: '',
? `${num(valueAvailableFromIssuers, 0)}%`
: '',
tooltip: `${num(
valueAvailableFromIssuers,
0,
Expand All @@ -88,8 +88,8 @@ export function HoldingsChart({ holdings, issuers }: HoldingsChartProps) {
label: valueAvailableFromInvestors.gte(30)
? `${num(valueAvailableFromInvestors, 0)}% circulating`
: valueAvailableFromInvestors.gte(10)
? `${num(valueAvailableFromInvestors, 0)}%`
: '',
? `${num(valueAvailableFromInvestors, 0)}%`
: '',
tooltip: `${num(
valueAvailableFromInvestors,
0,
Expand All @@ -101,8 +101,8 @@ export function HoldingsChart({ holdings, issuers }: HoldingsChartProps) {
label: valueReserved.gte(30)
? `${num(valueReserved, 0)}% reserved`
: valueReserved.gte(10)
? `${num(valueReserved, 0)}%`
: '',
? `${num(valueReserved, 0)}%`
: '',
tooltip: `${num(valueReserved, 0)}% reserved by buyers`,
value: valueReserved.toNumber(),
color: '#AAAAAA',
Expand All @@ -111,8 +111,8 @@ export function HoldingsChart({ holdings, issuers }: HoldingsChartProps) {
label: valueConsumed.gte(30)
? `${num(valueConsumed, 0)}% donated`
: valueConsumed.gte(10)
? `${num(valueConsumed, 0)}%`
: '',
? `${num(valueConsumed, 0)}%`
: '',
tooltip: `${num(
valueConsumed,
0,
Expand Down
4 changes: 2 additions & 2 deletions pages/project/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ function ProjectPage({ projectId }: { projectId: string }) {
projectBelongsToUser
? 'incomingDonations'
: project.donationCount > 0
? 'topContributors'
: 'registerDonations'
? 'topContributors'
: 'registerDonations'
}
>
<Tabs.List>
Expand Down
6 changes: 3 additions & 3 deletions pages/ranking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ const Ranking = ({
{user.userScore == null
? '0' // Should never happen
: user.userScore?.score === zero ||
user.userScore?.score >= one
? num(user.userScore.score, 0)
: '< 1'}
user.userScore?.score >= one
? num(user.userScore.score, 0)
: '< 1'}
</td>
<td className="w-10 text-right">
{index < 3 && (
Expand Down

0 comments on commit c678b90

Please sign in to comment.