Skip to content

Commit

Permalink
fix: add error checking (#1668)
Browse files Browse the repository at this point in the history
* fix: add error checking

* use null instead
  • Loading branch information
dionizh committed May 30, 2022
1 parent bea02df commit 5036c66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions game_frontend/src/components/Badge/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export default class BadgeModal extends Component {

const taskId = this.props.taskId
const info = badgeInfo[taskId]
if (info === undefined) {
return null
}

return (
<Modal
Expand Down

0 comments on commit 5036c66

Please sign in to comment.