Skip to content

Commit

Permalink
fix display of service fees
Browse files Browse the repository at this point in the history
  • Loading branch information
antho1404 committed Dec 20, 2024
1 parent 0a217cf commit 78a3339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Offer/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Summary: FC<Props> = ({
) : (
<Heading as={Flex} variant="heading3" color="gray.500" mb={2}>
{t('offer.summary.fees', {
value: feesOnTopPerTenThousand.div(100).toString(),
value: parseFloat(feesOnTopPerTenThousand.toString()) / 100,
})}
<Text
as={Price}
Expand Down
4 changes: 2 additions & 2 deletions components/Sales/Direct/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ const SalesDirectForm: FC<Props> = ({ asset, currencies, onCreated }) => {
) : (
<Text variant="text" color="gray.500">
{t('sales.direct.form.fees', {
value: feesPerTenThousand.div(100).toString(),
value: parseFloat(feesPerTenThousand.toString()) / 100,
})}
<Text
as={Price}
Expand Down Expand Up @@ -481,7 +481,7 @@ const SalesDirectForm: FC<Props> = ({ asset, currencies, onCreated }) => {
) : (
<Text variant="text" color="gray.500">
{t('sales.direct.form.total-fees', {
value: feesPerTenThousand.div(100).toString(),
value: parseFloat(feesPerTenThousand.toString()) / 100,
})}
<Text
as={Price}
Expand Down

0 comments on commit 78a3339

Please sign in to comment.