Skip to content

Commit

Permalink
fix: displaying other fields before displaying anonymous user (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielconti10 authored Feb 7, 2024
1 parent 9a840c2 commit e87de24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/zipper.dev/src/components/playground/tab-runs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ const HistoryTab: React.FC<HistoryTabProps> = ({ appId }) => {
//run by
columnHelper.accessor(
(row) => {
return `${row.user?.name || 'Anonymous user'}`;
return `${
row.user.name ||
row.user.slug ||
row.user.displayName ||
'Anonymous user'
}`;
},
{
id: 'user',
Expand Down

0 comments on commit e87de24

Please sign in to comment.