Skip to content

Commit 092ecf6

Browse files
committed
Fix optional chaining for rule type check in ViewChallengeTasks component
1 parent 2dfcdad commit 092ecf6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/AdminPane/Manage/ViewChallengeTasks/ViewChallengeTasks.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class ViewChallengeTasks extends Component {
156156
if (rule?.rules) {
157157
return rule.rules.map((r) => parseBoundsRule(r, priorityLevel, priorityBounds));
158158
}
159-
if (rule.type === "bounds") {
159+
if (rule?.type === "bounds") {
160160
return priorityBounds.push({
161161
boundingBox: rule.value.replace("location.", ""),
162162
priorityLevel,

0 commit comments

Comments
 (0)