mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-28 16:01:26 +00:00
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 ModalCreditIntro = (props: Props) => {
|
||||||
const { closeModal, totalRewardValue, currentBalance, addBalance } = props;
|
const { closeModal, totalRewardValue, currentBalance, addBalance } = props;
|
||||||
const totalRewardRounded = Math.round(totalRewardValue / 10) * 10;
|
const totalRewardRounded = Math.floor(totalRewardValue / 10) * 10;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal type="custom" isOpen contentLabel="Welcome to LBRY">
|
<Modal type="custom" isOpen contentLabel="Welcome to LBRY">
|
||||||
|
|
Loading…
Add table
Reference in a new issue