From 66f12c6c5eac906da4891272c836fb93ef5dd514 Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Wed, 23 Oct 2024 12:42:15 +0500 Subject: [PATCH] fix(skymp5-client): fix error in magicSyncService.ts (#2188) --- skymp5-client/src/services/services/magicSyncService.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/skymp5-client/src/services/services/magicSyncService.ts b/skymp5-client/src/services/services/magicSyncService.ts index 7a643a4379..85ffb19a16 100644 --- a/skymp5-client/src/services/services/magicSyncService.ts +++ b/skymp5-client/src/services/services/magicSyncService.ts @@ -154,10 +154,9 @@ export class MagicSyncService extends ClientListener { const leftHandEquipmentType = ac.getEquippedItemType(SlotType.Left); const rightHandEquipmentType = ac.getEquippedItemType(SlotType.Right); - // @ts-expect-error (TODO: Remove in 2.10.0) - if (leftHandEquipmentType === EquippedItemType.SpellOrScroll || leftHandEquipmentType === EquippedItemType.Staff || - // @ts-expect-error (TODO: Remove in 2.10.0) - rightHandEquipmentType === EquippedItemType.SpellOrScroll || rightHandEquipmentType === EquippedItemType.Staff) { + // TODO: Spell => SpellOrScroll, since Spell is now a deprecated name (TODO: Remove in 2.10.0) + if (leftHandEquipmentType === EquippedItemType.Spell || leftHandEquipmentType === EquippedItemType.Staff || + rightHandEquipmentType === EquippedItemType.Spell || rightHandEquipmentType === EquippedItemType.Staff) { return true; }