Fixing manual throughput cost estimate (#1740)

* Fixing manual throughput cost estimate

* Fix test and prettier errors
This commit is contained in:
vchske 2024-02-14 09:55:45 -08:00 committed by GitHub
parent a914fd020c
commit f87611a39d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -306,7 +306,7 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
}; };
const costElement = (): JSX.Element => { const costElement = (): JSX.Element => {
const prices: PriceBreakdown = getRuPriceBreakdown(throughput, serverId, numberOfRegions, isMultimaster, true); const prices: PriceBreakdown = getRuPriceBreakdown(throughput, serverId, numberOfRegions, isMultimaster, false);
return ( return (
<Stack {...checkBoxAndInputStackProps} style={{ marginTop: 15 }}> <Stack {...checkBoxAndInputStackProps} style={{ marginTop: 15 }}>
{newThroughput && newThroughputCostElement()} {newThroughput && newThroughputCostElement()}

View File

@ -917,7 +917,7 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
> >
$ $
0.012 0.0080
/hr /hr
</Text> </Text>
<Text <Text
@ -929,7 +929,7 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
> >
$ $
0.29 0.19
/day /day
</Text> </Text>
<Text <Text
@ -941,7 +941,7 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
> >
$ $
8.76 5.84
/mo /mo
</Text> </Text>
</Stack> </Stack>
@ -1354,7 +1354,7 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
> >
$ $
0.012 0.0080
/hr /hr
</Text> </Text>
<Text <Text
@ -1366,7 +1366,7 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
> >
$ $
0.29 0.19
/day /day
</Text> </Text>
<Text <Text
@ -1378,7 +1378,7 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
> >
$ $
8.76 5.84
/mo /mo
</Text> </Text>
</Stack> </Stack>