Skip to content

Commit

Permalink
Fixed typescript oddities created by migrating the outfitwars defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Cavanagh committed Jul 30, 2023
1 parent febbab0 commit 8a4b9f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion components/alert/AlertBattleranks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export default Vue.extend({
},
outfitwar: {
type: Object as () => InstanceOutfitWarsResponseInterface,
default: () => ({}),
default: () => ({
ps2AlertsEventType: Ps2AlertsEventType.OUTFIT_WARS_AUG_2022,
outfitwars: null,
}),
required: false,
},
},
Expand Down
5 changes: 4 additions & 1 deletion components/alert/AlertCombatHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ export default Vue.extend({
},
outfitwar: {
type: Object as () => InstanceOutfitWarsResponseInterface,
default: () => ({}),
default: () => ({
ps2AlertsEventType: Ps2AlertsEventType.OUTFIT_WARS_AUG_2022,
outfitwars: null,
}),
required: false,
},
},
Expand Down
6 changes: 5 additions & 1 deletion components/alert/AlertFactionCombatMetrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ export default Vue.extend({
},
outfitwar: {
type: Object as () => InstanceOutfitWarsResponseInterface,
default: () => ({}),
default: () => ({
ps2AlertsEventType: Ps2AlertsEventType.OUTFIT_WARS_AUG_2022,
ps2AlertsEventState: Ps2AlertsEventState.STARTING,
outfitwars: null,
}),
required: false,
},
},
Expand Down

0 comments on commit 8a4b9f7

Please sign in to comment.