Skip to content

Commit 156fbc1

Browse files
committed
Disable toast when combat starts
1 parent 0379397 commit 156fbc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/model/Match.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export class Match {
260260
case "combat":
261261
this.teams.forEach((team) => team.findDuplicateAgents());
262262
this.roundTimeoutTime = data.timestamp + 99 * 1000; // Add 99 seconds to the current time
263+
this.toastInfo.active = false;
263264
break;
264265

265266
case "end":
@@ -522,6 +523,7 @@ export class Match {
522523
// Activate the toast with data from the event
523524
this.toastInfo = data;
524525
this.toastInfo.active = true;
526+
this.eventNumber++;
525527

526528
if (this.toastInfo.duration !== null) {
527529
// Auto-deactivate after the configured duration (ms)

0 commit comments

Comments
 (0)