mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
inverted logic, optional chaining
This commit is contained in:
parent
4cf2820fde
commit
a2c5da89c5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue