Skip to content

Commit

Permalink
Fixed lingering bugs with outfit wars object defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Maelstromeous committed Jul 31, 2023
1 parent 3fbb29a commit a3db3cc
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 28 deletions.
5 changes: 1 addition & 4 deletions components/alert/AlertBattleranks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 1 addition & 4 deletions components/alert/AlertCharacterMetrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 1 addition & 4 deletions components/alert/AlertCombatHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 1 addition & 4 deletions components/alert/AlertFactionCombatMetrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 1 addition & 4 deletions components/alert/AlertOutfitMetrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 1 addition & 4 deletions components/alert/AlertPopulations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 2 additions & 4 deletions components/alert/AlertResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default Vue.extend({
type: Object as () => InstanceOutfitWarsResponseInterface,
default: () => ({
ps2AlertsEventType: Ps2AlertsEventType.OUTFIT_WARS_AUG_2022,
outfitwars: null,
}),
required: false,
},
Expand Down Expand Up @@ -180,10 +181,7 @@ export default Vue.extend({
}
},
isOutfitWar(): boolean {
return (
this.outfitwar?.ps2AlertsEventType ===
Ps2AlertsEventType.OUTFIT_WARS_AUG_2022
)
return this.outfitwar.outfitwars !== null
},
},
})
Expand Down

0 comments on commit a3db3cc

Please sign in to comment.