Skip to content

Commit

Permalink
backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelefros committed Jul 5, 2024
1 parent e668958 commit eab2ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/profile.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class ProfileService {
}

private isProfileExpired(profile: Profile, buffer: number = 0): boolean {
if (profile.type === ProfileType.KEY) {
if (profile.type === null || profile.type === undefined || profile.type === ProfileType.KEY) {
return false;
}
const now = new Date();
Expand Down

0 comments on commit eab2ec5

Please sign in to comment.