File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -832,7 +832,7 @@ class RoturExtension {
832
832
for ( let key of Object . keys ( this . user ) ) {
833
833
keys . push ( key ) ;
834
834
}
835
- if ( keys . length === 0 ) return [ "No User Keys" ] ;
835
+ if ( ! keys || keys . length === 0 ) return [ "No User Keys" ] ;
836
836
else return keys ;
837
837
}
838
838
@@ -847,7 +847,7 @@ class RoturExtension {
847
847
return [ "Invalid Friends List" ] ;
848
848
}
849
849
}
850
- if ( keys . length === 0 ) return [ "No Friends" ] ;
850
+ if ( ! keys || keys . length === 0 ) return [ "No Friends" ] ;
851
851
else return keys ;
852
852
}
853
853
@@ -862,7 +862,7 @@ class RoturExtension {
862
862
return [ "Invalid Requests List" ] ;
863
863
}
864
864
}
865
- if ( keys . length === 0 ) return [ "No Requests" ] ;
865
+ if ( ! keys || keys . length === 0 ) return [ "No Requests" ] ;
866
866
else return keys ;
867
867
}
868
868
You can’t perform that action at this time.
0 commit comments