mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 19:42:51 +00:00
Use more concise syntax for optional function call
This commit is contained in:
1 parent
e6047f8583
commit
333b7cc041
1 file changed
+1
-3
@@ -48,9 +48,7 @@ export function UserMenuContainer({ preventNavigation = false }: Props) {
|
||||
modalState.open();
|
||||
break;
|
||||
case "logout":
|
||||
if (logout) {
|
||||
logout();
|
||||
}
|
||||
logout?.();
|
||||
break;
|
||||
case "login":
|
||||
history.push("/login", { state: { from: location } });
|
||||
|
||||
Reference in new issue
Block a user