diff --git a/packages/app/src/Subscription/index.ts b/packages/app/src/Subscription/index.ts index 6841c8ed..e1faf8aa 100644 --- a/packages/app/src/Subscription/index.ts +++ b/packages/app/src/Subscription/index.ts @@ -52,7 +52,7 @@ export interface SubscriptionEvent { export function getActiveSubscriptions(s: Array) { const now = unixNow(); - return s.filter(a => a.start <= now && a.end > now); + return [...s].sort((a, b) => b.type - a.type).filter(a => a.start <= now && a.end > now); } export function getCurrentSubscription(s: Array) {