earn
earn copied to clipboard
[TalentProfile][Fix] After uploading PoW, now we update the talentFeed
What does this PR do?
Before, when user uploaded a new PoW through the Add Project in their profile page, we didn't show the newly created PoW. After, now we do. There was a bug on how we updated the talent variable in that React component and also the shape of the object created is not the same one as the one we get from the backend. Missing lots of fields.
Solution:
- Completely refresh the page to avoid managing unnecessary partial states.
Where should the reviewer start?
The flow starts like this:
AddProject.tsx -> onSubmit() -> t/[slug]/index.tsx addNewPow()
How should this be manually tested?
Go to your profile, click on +ADD (next to Proof of Work), complete the form, click on AddProject. Expected result: no reload should be needed. The PoW should be added to the profile automatically.
Any background context you want to provide?
No. First contribution to this repo and to Superteam
What are the relevant issues?
No issue submitted for this so far.
Screenshots (if appropriate)
Uploaded above