diff --git a/components/alert/AlertBattleranks.vue b/components/alert/AlertBattleranks.vue index 2d361796..ec20ad96 100644 --- a/components/alert/AlertBattleranks.vue +++ b/components/alert/AlertBattleranks.vue @@ -156,10 +156,7 @@ export default Vue.extend({ return (100 / (this.updateRate / 1000)) * this.updateCountdown }, isOutfitWar(): boolean { - return ( - this.outfitwar?.ps2AlertsEventType === - Ps2AlertsEventType.OUTFIT_WARS_AUG_2022 - ) + return this.outfitwar.outfitwars !== null }, }, watch: { diff --git a/components/alert/AlertCharacterMetrics.vue b/components/alert/AlertCharacterMetrics.vue index 26adff40..3b100d65 100644 --- a/components/alert/AlertCharacterMetrics.vue +++ b/components/alert/AlertCharacterMetrics.vue @@ -186,10 +186,7 @@ export default Vue.extend({ return (100 / (this.updateRate / 1000)) * this.updateCountdown }, isOutfitWar(): boolean { - return ( - this.outfitwar?.ps2AlertsEventType === - Ps2AlertsEventType.OUTFIT_WARS_AUG_2022 - ) + return this.outfitwar.outfitwars !== null }, }, watch: { diff --git a/components/alert/AlertCombatHistory.vue b/components/alert/AlertCombatHistory.vue index 74e7c2c5..6b13b9a4 100644 --- a/components/alert/AlertCombatHistory.vue +++ b/components/alert/AlertCombatHistory.vue @@ -160,10 +160,7 @@ export default Vue.extend({ return (100 / (this.updateRate / 1000)) * this.updateCountdown }, isOutfitWar(): boolean { - return ( - this.outfitwar?.ps2AlertsEventType === - Ps2AlertsEventType.OUTFIT_WARS_AUG_2022 - ) + return this.outfitwar.outfitwars !== null }, }, watch: { diff --git a/components/alert/AlertFactionCombatMetrics.vue b/components/alert/AlertFactionCombatMetrics.vue index 83928c39..2df7700a 100644 --- a/components/alert/AlertFactionCombatMetrics.vue +++ b/components/alert/AlertFactionCombatMetrics.vue @@ -298,10 +298,7 @@ export default Vue.extend({ return this.outfitwar.outfitwars?.teams?.blue?.tag ?? 'Blue' }, isOutfitWar(): boolean { - return ( - this.outfitwar?.ps2AlertsEventType === - Ps2AlertsEventType.OUTFIT_WARS_AUG_2022 - ) + return this.outfitwar.outfitwars !== null }, }, watch: { diff --git a/components/alert/AlertOutfitMetrics.vue b/components/alert/AlertOutfitMetrics.vue index 4ebc0727..f0a76e90 100644 --- a/components/alert/AlertOutfitMetrics.vue +++ b/components/alert/AlertOutfitMetrics.vue @@ -217,10 +217,7 @@ export default Vue.extend({ return (100 / (this.updateRate / 1000)) * this.updateCountdown }, isOutfitWar(): boolean { - return ( - this.outfitwar?.ps2AlertsEventType === - Ps2AlertsEventType.OUTFIT_WARS_AUG_2022 - ) + return this.outfitwar.outfitwars !== null }, }, watch: { diff --git a/components/alert/AlertPopulations.vue b/components/alert/AlertPopulations.vue index faf6d74c..ec4a3191 100644 --- a/components/alert/AlertPopulations.vue +++ b/components/alert/AlertPopulations.vue @@ -273,10 +273,7 @@ export default Vue.extend({ return (100 / (this.updateRate / 1000)) * this.updateCountdown }, isOutfitWar(): boolean { - return ( - this.outfitwar?.ps2AlertsEventType === - Ps2AlertsEventType.OUTFIT_WARS_AUG_2022 - ) + return this.outfitwar.outfitwars !== null }, }, watch: { diff --git a/components/alert/AlertResult.vue b/components/alert/AlertResult.vue index 44b18d4c..be75303c 100644 --- a/components/alert/AlertResult.vue +++ b/components/alert/AlertResult.vue @@ -124,6 +124,7 @@ export default Vue.extend({ type: Object as () => InstanceOutfitWarsResponseInterface, default: () => ({ ps2AlertsEventType: Ps2AlertsEventType.OUTFIT_WARS_AUG_2022, + outfitwars: null, }), required: false, }, @@ -180,10 +181,7 @@ export default Vue.extend({ } }, isOutfitWar(): boolean { - return ( - this.outfitwar?.ps2AlertsEventType === - Ps2AlertsEventType.OUTFIT_WARS_AUG_2022 - ) + return this.outfitwar.outfitwars !== null }, }, })