mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-24 13:52:45 +00:00
fix eslint failure (#1852)
## Description: Fix the failing eslint check after cherry-picking v25 changes into main. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced
This commit is contained in:
@@ -698,10 +698,10 @@ export class PlayerImpl implements Player {
|
||||
if (embargo !== undefined && !embargo.isTemporary) return;
|
||||
|
||||
this.mg.addUpdate({
|
||||
type: GameUpdateType.EmbargoEvent,
|
||||
embargoedID: other.smallID(),
|
||||
event: "start",
|
||||
playerID: this.smallID(),
|
||||
embargoedID: other.smallID(),
|
||||
type: GameUpdateType.EmbargoEvent,
|
||||
});
|
||||
|
||||
this.embargoes.set(other.id(), {
|
||||
@@ -714,10 +714,10 @@ export class PlayerImpl implements Player {
|
||||
stopEmbargo(other: Player): void {
|
||||
this.embargoes.delete(other.id());
|
||||
this.mg.addUpdate({
|
||||
type: GameUpdateType.EmbargoEvent,
|
||||
embargoedID: other.smallID(),
|
||||
event: "stop",
|
||||
playerID: this.smallID(),
|
||||
embargoedID: other.smallID(),
|
||||
type: GameUpdateType.EmbargoEvent,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user