Skip to content

Commit 12c95db

Browse files
committed
Brave Rewards notification not reflecting processed 'Auto Contribute' amount correctly
Fixes brave/brave-browser#7185
1 parent 381e31b commit 12c95db

File tree

1 file changed

+2
-2
lines changed
  • components/brave_rewards/resources/extension/brave_rewards/components

1 file changed

+2
-2
lines changed

components/brave_rewards/resources/extension/brave_rewards/components/panel.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ export class Panel extends React.Component<Props, State> {
367367

368368
if (result === '0') {
369369
const currency = onlyAnonWallet ? getMessage('bap') : getMessage('bat')
370-
const fixed = utils.convertProbiToFixed(notification.args[3])
371-
text = getMessage('contributeNotificationSuccess', [fixed, currency])
370+
const contributionAmount = parseFloat(notification.args[3]).toFixed(1)
371+
text = getMessage('contributeNotificationSuccess', [contributionAmount, currency])
372372
} else if (result === '15') {
373373
text = getMessage('contributeNotificationNotEnoughFunds')
374374
isAlert = 'warning'

0 commit comments

Comments
 (0)