Challenge prizes are showing wrong

Register
Submit a solution
The challenge is finished.

Challenge Overview

Describe the bug The community app is reading the prizes wrongly from the v5 API response. It's reading the first entry in the prizeSets array when it should find the one where the type is equal to placement

Expected behavior The community app should find the correct prize set based on the type property.

Screenshots <img width="1708" alt="Screenshot 2020-11-17 at 3 07 07 AM" src="https://user-images.githubusercontent.com/4612921/99330937-70ea5200-2888-11eb-8ba8-c4e9d82656dc.png">

In the above screenshot, it's showing the copilot payment instead of the prizes as the copilot prize set appears first in the array.

See the following two API responses for comparison: <img width="1101" alt="Screenshot 2020-11-17 at 3 05 53 AM" src="https://user-images.githubusercontent.com/4612921/99331453-970ff200-2888-11eb-8572-2863df998975.png">



Final Submission Guidelines

Git issue link: https://github.com/topcoder-platform/community-app/issues/5193

Review style

Final Review

Community Review Board

Approval

User Sign-Off

Challenge links

ID: 30152317