Skip to content

Commit

Permalink
convert timeout values to strings (#11760)
Browse files Browse the repository at this point in the history
  • Loading branch information
BTreston authored Oct 29, 2024
1 parent c886217 commit e39ab59
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class AccountSecurityComponent implements OnInit, OnDestroy {
availableVaultTimeoutActions: VaultTimeoutAction[] = [];
vaultTimeoutOptions: VaultTimeoutOption[];
vaultTimeoutPolicyCallout: Observable<{
timeout: { hours: number; minutes: number };
timeout: { hours: string; minutes: string };
action: VaultTimeoutAction;
}>;
supportsBiometric: boolean;
Expand Down Expand Up @@ -105,8 +105,8 @@ export class AccountSecurityComponent implements OnInit, OnDestroy {
let timeout;
if (policy.data?.minutes) {
timeout = {
hours: Math.floor(policy.data?.minutes / 60),
minutes: policy.data?.minutes % 60,
hours: Math.floor(policy.data?.minutes / 60).toString(),
minutes: (policy.data?.minutes % 60).toString(),
};
}
return { timeout: timeout, action: policy.data?.action };
Expand Down

0 comments on commit e39ab59

Please sign in to comment.