Skip to content

Commit

Permalink
fixes lending max amount showing as wei instead floating number
Browse files Browse the repository at this point in the history
  • Loading branch information
creed-victor committed Nov 6, 2020
1 parent 8b77f0a commit 01cd5fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import '../../assets/index.scss';
import { FieldGroup } from '../../../../components/FieldGroup';
import { AmountField } from '../../../AmountField';
import { weiTo4 } from '../../../../../utils/blockchain/math-helpers';

type Props = {
amountName: string;
Expand Down Expand Up @@ -39,7 +40,7 @@ const Amount: React.FC<Props> = ({
<div>Max:</div>
<div>
<span className="text-muted">{currency}</span>{' '}
<strong>{maxValue}</strong>
<strong>{weiTo4(maxValue)}</strong>
</div>
</div>
)}
Expand Down

0 comments on commit 01cd5fc

Please sign in to comment.