show correct amount on post staked amount
This commit is contained in:
parent
2ddfde1480
commit
7b446d1982
1 changed files with 1 additions and 3 deletions
|
@ -6,7 +6,6 @@ import FileActions from 'component/fileActions';
|
||||||
import FileRenderInitiator from 'component/fileRenderInitiator';
|
import FileRenderInitiator from 'component/fileRenderInitiator';
|
||||||
import FileRenderInline from 'component/fileRenderInline';
|
import FileRenderInline from 'component/fileRenderInline';
|
||||||
import FileViewCount from 'component/fileViewCount';
|
import FileViewCount from 'component/fileViewCount';
|
||||||
import { formatCredits } from 'lbry-redux';
|
|
||||||
import CreditAmount from 'component/common/credit-amount';
|
import CreditAmount from 'component/common/credit-amount';
|
||||||
import DateTime from 'component/dateTime';
|
import DateTime from 'component/dateTime';
|
||||||
|
|
||||||
|
@ -23,7 +22,6 @@ function PostViewer(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const amount = parseFloat(claim.amount) + parseFloat(claim.meta.support_amount);
|
const amount = parseFloat(claim.amount) + parseFloat(claim.meta.support_amount);
|
||||||
const formattedAmount = formatCredits(amount, 2, true);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="post">
|
<div className="post">
|
||||||
|
@ -33,7 +31,7 @@ function PostViewer(props: Props) {
|
||||||
</span>
|
</span>
|
||||||
</FileTitle>
|
</FileTitle>
|
||||||
<div className="post__info">
|
<div className="post__info">
|
||||||
<CreditAmount amount={formattedAmount} />
|
<CreditAmount amount={amount} />
|
||||||
<FileViewCount uri={uri} />
|
<FileViewCount uri={uri} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue