Skip to content

Commit

Permalink
updated beta f score
Browse files Browse the repository at this point in the history
  • Loading branch information
NyashaMuusha committed Sep 16, 2024
1 parent ff5b6c1 commit bfb2604
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ interface BetaFscoreWidgetProps {
}

function BetaFscoreWidget({ data }: BetaFscoreWidgetProps) {
const formatValue = (value?: number): number =>
value !== undefined && Number.isFinite(value)
? parseFloat(value.toFixed(5))
: 0
const formatValue = (value?: number): string => {
if (value === undefined || !Number.isFinite(value)) {
return '0.00000'
}
return value.toFixed(5)
}

return (
<Box component="fieldset">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'

type countWidgetType = {
label: string
value: number
value: string
icon?: React.ReactElement
iconBackgroundColor?: string
secondValue?: number
Expand Down

0 comments on commit bfb2604

Please sign in to comment.