diff --git a/front/src/Phaser/Game/GameMap.ts b/front/src/Phaser/Game/GameMap.ts index 769f184e..a588a4e6 100644 --- a/front/src/Phaser/Game/GameMap.ts +++ b/front/src/Phaser/Game/GameMap.ts @@ -75,7 +75,7 @@ export class GameMap { } private trigger(propName: string, oldValue: string | number | boolean | undefined, newValue: string | number | boolean | undefined) { - let callbacksArray = this.callbacks.get(propName); + const callbacksArray = this.callbacks.get(propName); if (callbacksArray !== undefined) { for (const callback of callbacksArray) { callback(newValue, oldValue);