Skip to content

Commit

Permalink
fix: check against subscription id that can be a None string (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgajowa authored Feb 4, 2025
1 parent b76844e commit e26c13e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ export class Supertab {
validTo: access.access.validTo
? new Date(access.access.validTo * 1000)
: undefined,
isSubscription: !!access.access.subscriptionId,
isSubscription:
!!access.access.subscriptionId &&
access.access.subscriptionId !== "None",
},
};
}
Expand Down

0 comments on commit e26c13e

Please sign in to comment.