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
1 changed files with 2 additions and 2 deletions

View File

@ -65,11 +65,11 @@ export class SendCreatedComponent {
if (this.hoursAvailable < 24) {
return this.hoursAvailable === 1
? this.i18nService.t("sendExpiresInHoursSingle")
: this.i18nService.t("sendExpiresInHours", this.hoursAvailable);
: this.i18nService.t("sendExpiresInHours", String(this.hoursAvailable));
}
return this.daysAvailable === 1
? this.i18nService.t("sendExpiresInDaysSingle")
: this.i18nService.t("sendExpiresInDays", this.daysAvailable);
: this.i18nService.t("sendExpiresInDays", String(this.daysAvailable));
}
getHoursAvailable(send: SendView): number {