Explorar o código

fix lint error

ryoji-s %!s(int64=3) %!d(string=hai) anos
pai
achega
30f08004de
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      apps/app/src/components/Admin/AuditLog/ActivityTable.tsx

+ 10 - 1
apps/app/src/components/Admin/AuditLog/ActivityTable.tsx

@@ -48,7 +48,16 @@ export const ActivityTable : FC<Props> = (props: Props) => {
                   { activity.user != null && (
                     <>
                       <UserPicture user={activity.user} />
-                      <a className="ml-2" href={pagePathUtils.userHomepagePath(activity.user.username)}>{activity.snapshot?.username}</a>
+                      <a
+                        className="ml-2"
+                        href={pagePathUtils.userHomepagePath(
+                          typeof activity.user === 'string'
+                            ? ''
+                            : activity.user.username,
+                        )}
+                      >
+                        {activity.snapshot?.username}
+                      </a>
                     </>
                   )}
                 </td>