round down so we don't say we have more rewards than available
This commit is contained in:
parent
f0930d8dcf
commit
2af2f61a8e
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ type Props = {
|
|||
|
||||
const ModalCreditIntro = (props: Props) => {
|
||||
const { closeModal, totalRewardValue, currentBalance, addBalance } = props;
|
||||
const totalRewardRounded = Math.round(totalRewardValue / 10) * 10;
|
||||
const totalRewardRounded = Math.floor(totalRewardValue / 10) * 10;
|
||||
|
||||
return (
|
||||
<Modal type="custom" isOpen contentLabel="Welcome to LBRY">
|
||||
|
|
Loading…
Add table
Reference in a new issue