mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-26 17:08:33 +01:00
fix expiration date (#11625)
This commit is contained in:
parent
4768f7c0fa
commit
0e23f5e0cd
@ -65,11 +65,11 @@ export class SendCreatedComponent {
|
|||||||
if (this.hoursAvailable < 24) {
|
if (this.hoursAvailable < 24) {
|
||||||
return this.hoursAvailable === 1
|
return this.hoursAvailable === 1
|
||||||
? this.i18nService.t("sendExpiresInHoursSingle")
|
? this.i18nService.t("sendExpiresInHoursSingle")
|
||||||
: this.i18nService.t("sendExpiresInHours", this.hoursAvailable);
|
: this.i18nService.t("sendExpiresInHours", String(this.hoursAvailable));
|
||||||
}
|
}
|
||||||
return this.daysAvailable === 1
|
return this.daysAvailable === 1
|
||||||
? this.i18nService.t("sendExpiresInDaysSingle")
|
? this.i18nService.t("sendExpiresInDaysSingle")
|
||||||
: this.i18nService.t("sendExpiresInDays", this.daysAvailable);
|
: this.i18nService.t("sendExpiresInDays", String(this.daysAvailable));
|
||||||
}
|
}
|
||||||
|
|
||||||
getHoursAvailable(send: SendView): number {
|
getHoursAvailable(send: SendView): number {
|
||||||
|
Loading…
Reference in New Issue
Block a user