fix: Array length check (#1300)

This commit is contained in:
Zero King 2020-10-03 16:37:50 +08:00 committed by GitHub
parent 70f08103aa
commit db4997c07f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ export default {
computed: { computed: {
isActive() { isActive() {
const { key } = this.channel; const { key } = this.channel;
if (Object.keys(this.enabledFeatures) === 0) { if (Object.keys(this.enabledFeatures).length === 0) {
return false; return false;
} }
if (key === 'facebook') { if (key === 'facebook') {