Use typeof

This commit is contained in:
Aya Morisawa 2018-09-01 23:29:22 +09:00
parent ffb345ccb5
commit b28dd4be52
No known key found for this signature in database
GPG key ID: 3E64865D70D579F2

View file

@ -25,7 +25,7 @@ export default (params: any) => new Promise(async (res, rej) => {
const set = {} as any;
if (ps.disableRegistration === true || ps.disableRegistration === false) {
if (typeof ps.disableRegistration === 'boolean') {
set.disableRegistration = ps.disableRegistration;
}