Skip to content

Commit

Permalink
Update StylizedBalanceCard.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Apr 6, 2024
1 parent 54cd6e7 commit 38fde1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const StylizedBalanceCard = ({ value, isOverlay, size = "base" }: Balance
if (isOverlay) {
cardClasses = `absolute ${overlaidCardSizeMap[size]} flex items-center justify-center bg-base-300 bg-opacity-60`;

output = formatNumber(123411).toString();
output = formatNumber(value).toString();
let result = "";

if (size === "xs") {
Expand All @@ -51,7 +51,7 @@ export const StylizedBalanceCard = ({ value, isOverlay, size = "base" }: Balance
} else if (output.length === 1) {
result = "text-4xl";
} else if (output.length === 2) {
result = "text-4xl";
result = "text-3xl";
} else if (output.length === 3) {
result = "text-2xl";
} else if (output.length === 4) {
Expand Down

0 comments on commit 38fde1c

Please sign in to comment.