Skip to content

Commit

Permalink
Brave Rewards notification not reflecting processed 'Auto Contribute'…
Browse files Browse the repository at this point in the history
… amount correctly

Fixes brave/brave-browser#7185
  • Loading branch information
masparrow authored and NejcZdovc committed Jan 16, 2020
1 parent 1f931ce commit 3488789
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ export class Panel extends React.Component<Props, State> {

if (result === '0') {
const currency = onlyAnonWallet ? getMessage('bap') : getMessage('bat')
const fixed = utils.convertProbiToFixed(notification.args[3])
text = getMessage('contributeNotificationSuccess', [fixed, currency])
const contributionAmount = parseFloat(notification.args[3]).toFixed(1)
text = getMessage('contributeNotificationSuccess', [contributionAmount, currency])
} else if (result === '15') {
text = getMessage('contributeNotificationNotEnoughFunds')
isAlert = 'warning'
Expand Down

0 comments on commit 3488789

Please sign in to comment.