Skip to content

Commit f479f19

Browse files
committed
Use correct teamnames after teamswitch
1 parent 8f18f84 commit f479f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/controllers/Api/CsgoController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class CsgoController extends baseController {
2929
serverData.locked = req.body.locked;
3030
serverData.match = req.body.match;
3131
serverData.CT = {
32-
team_name: req.body.ct_name,
32+
team_name: !req.body.half_time ? req.body.ct_name : req.body.t_name,
3333
players: []
3434
};
3535
serverData.T = {
36-
team_name: req.body.t_name,
36+
team_name: !req.body.half_time ? req.body.t_name : req.body.ct_name,
3737
players: []
3838
};
3939

0 commit comments

Comments
 (0)