ensure new sends that select custom expiration date must enter an expiration date (#460)

This commit is contained in:
Addison Beck 2021-08-19 17:17:22 -04:00 committed by GitHub
parent 309ea8ca9d
commit 5717fc9e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,8 @@ export class EffluxDatesComponent implements OnInit {
switch (this.browserPath) {
case BrowserPath.Safari:
case BrowserPath.Firefox:
if (!this.fallbackExpirationDate.value || !this.fallbackExpirationTime.value) {
if ((!this.fallbackExpirationDate.value || !this.fallbackExpirationTime.value) &&
this.editMode) {
return null;
}
return this.fallbackExpirationDate.value + 'T' + this.fallbackExpirationTime.value;