fix: created by in detail categories

This commit is contained in:
Sabda Yagra 2026-02-12 12:58:01 +07:00
parent a0cb4cc9bf
commit a7c7275590
1 changed files with 4 additions and 10 deletions

View File

@ -26,6 +26,7 @@ type CategoryDetail = {
isActive: boolean;
createdAt: string;
updatedAt: string;
createdByFullname : string;
};
type CurrentUser = {
@ -123,14 +124,7 @@ export default function CategoriesDetailForm() {
{/* Creator */}
<div>
<Label>Created By</Label>
<Input
readOnly
value={
currentUser && currentUser.id === detail.createdById
? currentUser.fullname || currentUser.username
: `User ID ${detail.createdById}`
}
/>
<Input readOnly value={detail.createdByFullname || "-"} />
{/* <Input
type="text"