Fix ManageInvite issue: Set No Limit but it doesn't work (#133)

This commit is contained in:
benqi 2022-05-07 00:57:01 +08:00 committed by GitHub
parent 391c667f09
commit 26e48ff8c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,8 @@ const ManageInvite: FC<OwnProps & StateProps> = ({
expireDate = getServerTime(serverTimeOffset) + DEFAULT_EXPIRE_DATE[selectedExpireOption] / 1000;
break;
case 'unlimited':
expireDate = 0;
break;
default:
expireDate = undefined;
}