Skip to content

Commit

Permalink
🔥 Translations video workspace (#4679)
Browse files Browse the repository at this point in the history
* Fix error in video workspace

* Handle extra case
  • Loading branch information
WRadoslaw authored Aug 17, 2023
1 parent 7ceba13 commit 36d6bcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/atlas/src/components/NumberFormat/NumberFormat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const NumberFormat = forwardRef<HTMLHeadingElement, NumberFormatProps>(
variant={variant}
ref={denominationRef}
>
({formattedDenominatedValue !== '<$0.01' ? '$' : ''}
({formattedDenominatedValue !== '<$0.01' ? <span>$</span> : null}
{formattedDenominatedValue}){' '}
</Text>
)}
Expand All @@ -103,7 +103,7 @@ export const NumberFormat = forwardRef<HTMLHeadingElement, NumberFormatProps>(
withToken={withToken}
ref={mergeRefs([ref, textRef])}
>
{displayedValue || formattedValue}
{displayedValue ? <span>{displayedValue}</span> : <span>{formattedValue}</span>}
</StyledText>
{withDenomination === 'after' && (
<Text
Expand All @@ -114,7 +114,7 @@ export const NumberFormat = forwardRef<HTMLHeadingElement, NumberFormatProps>(
ref={denominationRef}
>
{' '}
({formattedDenominatedValue !== '<$0.01' ? '$' : ''}
({formattedDenominatedValue !== '<$0.01' ? <span>$</span> : null}
{formattedDenominatedValue}){' '}
</Text>
)}
Expand Down Expand Up @@ -142,7 +142,7 @@ export const NumberFormat = forwardRef<HTMLHeadingElement, NumberFormatProps>(
variant="t100"
ref={denominationRef}
>
{formattedDenominatedValue !== '<$0.01' ? '$' : ''}
{formattedDenominatedValue !== '<$0.01' ? <span>$</span> : null}
{formattedDenominatedValue}
</Denomination>
)}
Expand Down

0 comments on commit 36d6bcc

Please sign in to comment.