Skip to content

Commit c14c920

Browse files
authored
slight fix for rotur.js
1 parent be9483a commit c14c920

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

featured/Rotur.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ class RoturExtension {
832832
for (let key of Object.keys(this.user)) {
833833
keys.push(key);
834834
}
835-
if (keys.length === 0) return ["No User Keys"];
835+
if (!keys || keys.length === 0) return ["No User Keys"];
836836
else return keys;
837837
}
838838

@@ -847,7 +847,7 @@ class RoturExtension {
847847
return ["Invalid Friends List"];
848848
}
849849
}
850-
if (keys.length === 0) return ["No Friends"];
850+
if (!keys || keys.length === 0) return ["No Friends"];
851851
else return keys;
852852
}
853853

@@ -862,7 +862,7 @@ class RoturExtension {
862862
return ["Invalid Requests List"];
863863
}
864864
}
865-
if (keys.length === 0) return ["No Requests"];
865+
if (!keys || keys.length === 0) return ["No Requests"];
866866
else return keys;
867867
}
868868

0 commit comments

Comments
 (0)