Skip to content

Commit f75954a

Browse files
committed
Fix: Add text for botSubstitutionLeft change
1 parent 04b2d0e commit f75954a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/helpers/ChangeDetails.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ function teamStateChangeTitle(change: Change_UpdateTeamState): string {
219219
return `Remove red card ${change.removeRedCard}`
220220
} else if (change.removeFoul !== undefined) {
221221
return `Remove foul ${change.removeFoul}`
222+
} else if (change.botSubstitutionsLeft !== undefined) {
223+
return `Bot substitutions left: ${change.botSubstitutionsLeft}`
222224
}
223225
return "Unknown team state change: " + JSON.stringify(change)
224226
}

0 commit comments

Comments
 (0)