Skip to content

Commit

Permalink
fix derp
Browse files Browse the repository at this point in the history
  • Loading branch information
MikesGlitch committed Nov 22, 2024
1 parent 224fc3d commit a2fbceb
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export function SummaryNumber({
}: SummaryNumberProps) {
const [fontSize, setFontSize] = useState<number>(initialFontSize);
const refDiv = useRef<HTMLDivElement>(null);
const displayAmount = amountToCurrency(Math.abs(value)) + suffix;

const displayAmount = amountToCurrency(Math.abs(value));
const handleResize = debounce(() => {
if (!refDiv.current) return;

Expand Down Expand Up @@ -65,7 +65,7 @@ export function SummaryNumber({
<View
ref={mergedRef as Ref<HTMLDivElement>}
role="text"
aria-label={`${value < 0 ? 'Negative' : 'Positive'} amount: ${displayAmount}${suffix}`}
aria-label={`${value < 0 ? 'Negative' : 'Positive'} amount: ${displayAmount}`}
style={{
alignItems: 'center',
flexGrow: 1,
Expand All @@ -82,10 +82,7 @@ export function SummaryNumber({
}}
>
<span aria-hidden="true">
<PrivacyFilter>
{displayAmount}
{suffix}
</PrivacyFilter>
<PrivacyFilter>{displayAmount}</PrivacyFilter>
</span>
</View>
)}
Expand Down

0 comments on commit a2fbceb

Please sign in to comment.