Skip to content

Commit 3c64378

Browse files
authored
add user name (#230)
1 parent 2dff1b4 commit 3c64378

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const AppRoot = () => {
77
const [searchParams] = useSearchParams();
88
const projectId = searchParams.get("project") || localStorage.getItem('projectId');
99
const flowId = searchParams.get("flow") || localStorage.getItem('flowId');
10-
const baseUrl = searchParams.get("baseurl") || localStorage.getItem('baseurl');
10+
const baseUrl = searchParams.get("baseurl") || localStorage.getItem('baseUrl');
1111

1212
if (projectId !== localStorage.getItem('projectId')) {
1313
localStorage.removeItem("DSR")

src/common/header/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import "./Header.css";
88
import { Badge, Button } from "antd";
99

1010
const getDisplayName = (user) => {
11-
return user?.email || "";
11+
return user?.name || user?.email || "";
1212
};
1313

1414
function Header() {

0 commit comments

Comments
 (0)