This commit is contained in:
Eugene Pankov 2021-10-18 13:53:27 +02:00
parent d82a88bcc6
commit e3375741af
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -34,17 +34,12 @@ export class UnlockVaultModalComponent {
this.modalInstance.close(null)
}
getRememberForDisplay (rememberOption): string {
if (rememberOption >= 1440)
{
return `${Math.round((rememberOption/1440)*10)/10} day`
}
else if (rememberOption >= 60)
{
return `${Math.round((rememberOption/60)*10)/10} hour`
}
else
{
getRememberForDisplay (rememberOption: number): string {
if (rememberOption >= 1440) {
return `${Math.round(rememberOption/1440*10)/10} day`
} else if (rememberOption >= 60) {
return `${Math.round(rememberOption/60*10)/10} hour`
} else {
return `${rememberOption} min`
}
}