Skip to content

Commit

Permalink
Tiny bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Apr 15, 2024
1 parent 2c1c02d commit 98f4f50
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export const StatusElement: FC<IStatusElementProps> = (props) => {
<div className={styles.label}>{props.summation.description}</div>
<div className={styles.value}>
{props.summation.renderAs === 'currency'
? tryParseCurrency(props.summation.result.toString())
? tryParseCurrency(props.summation.result?.toString())
: props.summation.renderAs === 'percentage'
? (tryParsePercentage(props.summation.result.toString(), false, 0) as number)
? (tryParsePercentage(props.summation.result?.toString(), false, 0) as number)
: props.summation.result}
</div>
</div>
Expand Down

0 comments on commit 98f4f50

Please sign in to comment.