11"use client"
22
3- import { type Publication , PublicationStatusSchema } from "@packages/schema"
4- import { ChainIdToNetwork } from "@packages/utils"
5- import type { ColumnDef } from "@tanstack/react-table"
6- import { CircleOffIcon , CircleSlash2Icon , DicesIcon } from "lucide-react"
73import { AddressDisplay } from "@/app/_components/address-display"
84import { NetworkBadge , networkOptions } from "@/app/_components/network-badge"
95import {
@@ -12,6 +8,10 @@ import {
128} from "@/app/_components/publication-status-badge"
139import { TypographySmall } from "@/app/_components/typography"
1410import { Badge } from "@/components/ui/badge"
11+ import { type Publication , PublicationStatusSchema } from "@packages/schema"
12+ import { ChainIdToNetwork } from "@packages/utils"
13+ import type { ColumnDef } from "@tanstack/react-table"
14+ import { CircleOffIcon , CircleSlash2Icon , DicesIcon } from "lucide-react"
1515
1616export const columns : ColumnDef < Publication > [ ] = [
1717 {
@@ -87,7 +87,17 @@ export const columns: ColumnDef<Publication>[] = [
8787 Publisher
8888 </ TypographySmall >
8989 ) ,
90- cell : ( { row } ) => < AddressDisplay address = { row . getValue ( "publisher" ) } /> ,
90+ cell : ( { row } ) => {
91+ const publisher = row . getValue < string | null > ( "publisher" )
92+ if ( ! publisher ) {
93+ return (
94+ < TypographySmall className = "text-muted-foreground text-xs" >
95+ —
96+ </ TypographySmall >
97+ )
98+ }
99+ return < AddressDisplay address = { publisher } />
100+ } ,
91101 } ,
92102 {
93103 accessorKey : "reviewers" ,
0 commit comments