1
0
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:
Jordan Aasen 2024-10-18 11:06:23 -07:00 committed by GitHub
parent 4768f7c0fa
commit 0e23f5e0cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {