Skip to content

Commit 029c92f

Browse files
authored
fix: fix name for external auth connections (#11318)
1 parent db71c0f commit 029c92f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/pages/UserSettingsPage/ExternalAuthPage/ExternalAuthPageView.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({
112112
onUnlinkExternalAuth,
113113
onValidateExternalAuth,
114114
}) => {
115-
const name = app.id || app.type;
115+
const name = app.display_name || app.id || app.type;
116116
const authURL = "/external-auth/" + app.id;
117117

118118
const {
@@ -127,10 +127,10 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({
127127
: link?.authenticated ?? false;
128128

129129
return (
130-
<TableRow key={name}>
130+
<TableRow key={app.id}>
131131
<TableCell>
132132
<AvatarData
133-
title={app.display_name || app.id}
133+
title={name}
134134
avatar={
135135
app.display_icon && (
136136
<Avatar src={app.display_icon} variant="square" fitImage />

0 commit comments

Comments
 (0)