optional chaining

This commit is contained in:
Miodec 2022-09-27 22:16:57 +02:00
parent a2c5da89c5
commit a3f2ba8a9e

View file

@ -22,7 +22,7 @@ const commands: MonkeyTypes.Command[] = [
update();
},
available: (): boolean => {
return !!Auth.currentUser;
return !!Auth?.currentUser;
},
},
];