Skip to content

Commit

Permalink
fix: handle arbitration missing
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Feb 18, 2023
1 parent 65da0fe commit 68060ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion components/panels/AggregatedTimePanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ export default {
return `${this.$t('time.Timer')}`;
},
isArbitrationActive() {
return dayjs(this.worldstate.arbitration.expiry).format('x') <= dayjs().format('x');
return (
!!this.worldstate.arbitration && dayjs(this.worldstate.arbitration.expiry).format('x') <= dayjs().format('x')
);
},
isSentientOutpostActive() {
return this.worldstate.sentientOutposts.active;
Expand Down
5 changes: 3 additions & 2 deletions store/worldstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,11 @@ export const actions = {
.concat(ws.conclaveChallenges.map((item) => item.id))
.concat([ws.cetusCycle.id])
.concat([ws.voidTrader.id])
.concat([`arbitration:${new Date(ws.arbitration.expiry).getTime()}`])
.concat(ws.arbitration && [`arbitration:${new Date(ws.arbitration.expiry).getTime()}`])
// .concat(ws.persistentEnemies.map((enemy) => enemy.pid))
.concat((ws.nightwave || { activeChallenges: [] }).activeChallenges.map((challenge) => challenge.id))
.concat([ws.sentientOutposts.id]);
.concat([ws.sentientOutposts.id])
.filter((id) => id);
commit('notifiedIds', [newIds]);
},
};
Expand Down

1 comment on commit 68060ac

@vercel
Copy link

@vercel vercel bot commented on 68060ac Feb 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

warframe-hub – ./

hub.warframestat.us
warframe-hub-wfcd.vercel.app
warframe-hub-git-dev-wfcd.vercel.app

Please sign in to comment.