Skip to content

Commit af9767d

Browse files
committed
fix: prefer name instead of username
1 parent 8295422 commit af9767d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

site/src/pages/AIBridgePage/RequestLogsPage/RequestLogsRow/RequestLogsRow.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const RequestLogsRow: FC<RequestLogsRowProps> = ({ interception }) => {
123123
className="flex-shrink-0"
124124
/>
125125
<div className="font-medium truncate min-w-0 flex-1 overflow-hidden">
126-
{interception.initiator.username}
126+
{interception.initiator.name ?? interception.initiator.username}
127127
</div>
128128
</div>
129129
</div>
@@ -250,7 +250,8 @@ export const RequestLogsRow: FC<RequestLogsRowProps> = ({ interception }) => {
250250
className="flex-shrink-0"
251251
/>
252252
<span className="truncate min-w-0 w-full">
253-
{interception.initiator.username}
253+
{interception.initiator.name ??
254+
interception.initiator.username}
254255
</span>
255256
</dd>
256257

0 commit comments

Comments
 (0)