diff --git a/components/table/article-table.tsx b/components/table/article-table.tsx index d76b2a8..c3b60e6 100644 --- a/components/table/article-table.tsx +++ b/components/table/article-table.tsx @@ -245,18 +245,15 @@ export default function ArticleTable() { - {(username === "admin-mabes" || - Number(userId) === article.createdById) && ( - - - - Edit - - - )} + + + + Edit + + {username === "admin-mabes" && ( )} - {(username === "admin-mabes" || - Number(userId) === article.createdById) && ( - handleDelete(article.id)}> - - Delete - - )} + handleDelete(article.id)}> + + Delete +