round down so we don't say we have more rewards than available

This commit is contained in:
Sean Yesmunt 2018-06-18 12:47:06 -04:00
parent f0930d8dcf
commit 2af2f61a8e

View file

@ -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">