inverted logic, optional chaining

This commit is contained in:
Miodec 2022-09-27 22:16:42 +02:00
parent 4cf2820fde
commit a2c5da89c5

View file

@ -51,7 +51,7 @@ const subgroup: MonkeyTypes.CommandsSubgroup = {
display: "custom",
configValue: "custom",
exec: (): void => {
if (Auth.currentUser === null) {
if (!Auth?.currentUser) {
Notifications.add(
"Multiple custom themes are available to logged in users only",
0