From 3dc0df0ac24c8a10732354b080d6d8f3e7596b9e Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 9 Apr 2021 13:35:46 +0100 Subject: [PATCH] fix user expiry when only month field set --- ts/modules/invites.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/modules/invites.ts b/ts/modules/invites.ts index 3bd2a0d..913e3e7 100644 --- a/ts/modules/invites.ts +++ b/ts/modules/invites.ts @@ -716,7 +716,7 @@ export class createInvite { create = () => { toggleLoader(this._createButton); let userExpiry = this.userExpiry; - if (this.userDays == 0 && this.userHours == 0 && this.userMinutes == 0) { + if (this.userMonths == 0 && this.userDays == 0 && this.userHours == 0 && this.userMinutes == 0) { userExpiry = false; } let send = {