File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -414,10 +414,23 @@ function App() {
414414 const periodLabel = rangeStart
415415 ? new Date ( rangeStart + 'T00:00:00' ) . toLocaleString ( 'en-US' , { month : 'long' , year : 'numeric' } )
416416 : null
417- return savings > 0 && periodLabel ? (
417+ return periodLabel ? (
418418 < p className = "comparison-framing" >
419- Your < strong > { periodLabel } </ strong > usage would cost{ ' ' }
420- < strong > { formatUsd ( savings ) } less</ strong > under token-based pricing
419+ { savings > 0 ? (
420+ < >
421+ Your < strong > { periodLabel } </ strong > usage would cost{ ' ' }
422+ < strong > { formatUsd ( savings ) } less</ strong > under token-based pricing
423+ </ >
424+ ) : savings < 0 ? (
425+ < >
426+ Your < strong > { periodLabel } </ strong > usage would cost{ ' ' }
427+ < strong > { formatUsd ( Math . abs ( savings ) ) } more</ strong > under token-based pricing
428+ </ >
429+ ) : (
430+ < >
431+ Your < strong > { periodLabel } </ strong > usage cost would be the same under token-based pricing
432+ </ >
433+ ) }
421434 </ p >
422435 ) : null
423436 } ) ( ) }
You can’t perform that action at this time.
0 commit comments