refactor: handle undefined
in Object.keys
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
8a086da698
commit
0083091ea1
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ addPatch({
|
|||
],
|
||||
|
||||
shouldIgnore(state: any) {
|
||||
return Object.keys(state?.default?.lastDeviceConnected)?.[0] === "vencord-screen-share";
|
||||
return Object.keys(state?.default?.lastDeviceConnected ?? {})?.[0] === "vencord-screen-share";
|
||||
}
|
||||
});
|
||||
|
|
Reference in a new issue