fix: small adjustment

This commit is contained in:
Zamitto 2024-10-22 22:33:23 -03:00
parent c36c940a79
commit 73185e7cbc
2 changed files with 3 additions and 7 deletions

View file

@ -44,7 +44,7 @@ export class HydraApi {
return this.userAuth.authToken !== "";
}
private static hasCloudSubscription() {
private static hasActiveSubscription() {
return (
this.userAuth.subscription?.expiresAt &&
this.userAuth.subscription.expiresAt > new Date()
@ -279,7 +279,7 @@ export class HydraApi {
}
if (needsSubscription) {
if (!(await this.hasCloudSubscription())) {
if (!(await this.hasActiveSubscription())) {
throw new SubscriptionRequiredError();
}
}