brave-browser: Rewards tab remains blank, browser console shows errors about 'this.props.rewardsData.adsData'
Description
Steps to Reproduce
- Go to the Rewards Tab
Actual result:
The page loads the cr-toolbar tab but the actual content div id="root" stays empty.
The dev console prints this:
brave_rewards_page.bundle.js:76 TypeError: Cannot destructure property 'adsEnabled' of 'this.props.rewardsData.adsData' as it is undefined.
at Xf.componentDidMount (brave_rewards_page.bundle.js:3609)
at Ro (brave_rewards_page.bundle.js:76)
at jo (brave_rewards_page.bundle.js:76)
at brave_rewards_page.bundle.js:76
at Object.t.unstable_runWithPriority (brave_rewards_page.bundle.js:85)
at Sl (brave_rewards_page.bundle.js:76)
at xl (brave_rewards_page.bundle.js:76)
at Cl (brave_rewards_page.bundle.js:76)
at Al (brave_rewards_page.bundle.js:76)
at Zo (brave_rewards_page.bundle.js:76)
no @ brave_rewards_page.bundle.js:76
n.callback @ brave_rewards_page.bundle.js:76
Ja @ brave_rewards_page.bundle.js:76
Ha @ brave_rewards_page.bundle.js:76
Ro @ brave_rewards_page.bundle.js:76
jo @ brave_rewards_page.bundle.js:76
(anonymous) @ brave_rewards_page.bundle.js:76
t.unstable_runWithPriority @ brave_rewards_page.bundle.js:85
Sl @ brave_rewards_page.bundle.js:76
xl @ brave_rewards_page.bundle.js:76
Cl @ brave_rewards_page.bundle.js:76
Al @ brave_rewards_page.bundle.js:76
Zo @ brave_rewards_page.bundle.js:76
Ul @ brave_rewards_page.bundle.js:76
Fl @ brave_rewards_page.bundle.js:76
jl.render @ brave_rewards_page.bundle.js:76
(anonymous) @ brave_rewards_page.bundle.js:76
Tl @ brave_rewards_page.bundle.js:76
Ll @ brave_rewards_page.bundle.js:76
render @ brave_rewards_page.bundle.js:76
initialize @ brave_rewards_page.bundle.js:3609
and this
brave_rewards_page.bundle.js:3609 Uncaught TypeError: Cannot destructure property 'adsEnabled' of 'this.props.rewardsData.adsData' as it is undefined.
at Xf.componentDidMount (brave_rewards_page.bundle.js:3609)
at Ro (brave_rewards_page.bundle.js:76)
at jo (brave_rewards_page.bundle.js:76)
at brave_rewards_page.bundle.js:76
at Object.t.unstable_runWithPriority (brave_rewards_page.bundle.js:85)
at Sl (brave_rewards_page.bundle.js:76)
at xl (brave_rewards_page.bundle.js:76)
at Cl (brave_rewards_page.bundle.js:76)
at Al (brave_rewards_page.bundle.js:76)
at Zo (brave_rewards_page.bundle.js:76)
Expected result:
The content loads
Reproduces how often:
Easily reproduced in my case, it does it everytime
Brave version (brave://version info)
Brave | 1.16.72 Chromium: 86.0.4240.183 (Official Build) (64-bit) Revision | 0b568b034b8f7994697cb341eeca5979b84151cc-refs/branch-heads/4240@{#1374} OS | Linux
Version/Channel Information:
I don’t know, but the error happened after I updated from an outdated version to a previous update, I updated it again once 1.16.72 came out.
Other Additional Information:
- Does the issue resolve itself when disabling Brave Shields? Nah
- Does the issue resolve itself when disabling Brave Rewards? It’s about Brave Rewards
- Is the issue reproducible on the latest version of Chrome? No, said feature not available in Chrome
Miscellaneous Information:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21
Hey Terry, ah I thought you meant a screen recording of the issue.
I have sent an email to the email mentioned on your github profile. Let’s schedule a time for the screenshare.
@inian I am investigating the cause of the issue. Thanks
@tmancey I’m pretty sure it was version 0.73 or something around that, I had installed both Brave and Brave Dev at the same time, I hadn’t updated the Dev edition since I installed it, it’s at :
The outdated Brave Dev’s reward page works. I’ve checked the local storage under “Application” in the dev tools, the object
adsDataisn’t present in the new version at all, while it is in the new version:@ztickm Do you know which version you upgraded from please? Thank you