Skip to content

Commit

Permalink
/dashboard のエラーを消した
Browse files Browse the repository at this point in the history
  • Loading branch information
Yayoi2078 committed Oct 22, 2024
1 parent 7b21d6b commit f983230
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pos/app/routes/_header.dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,17 @@ export default function Dashboard() {
</div>
))}
</div>
{detailOrder?.description && (
<div className="mt-4 flex rounded-md bg-gray-200 p-1">
<div className="flex-none">備考:</div>
<div>{detailOrder?.description}</div>
{detailOrder?.comments.length === 0 && (
<div>
{detailOrder.comments.map((comment, index) => (
<div
key={`${comment.author}-${comment.text}`}
className="my-2 flex rounded-md bg-gray-200 p-1"
>
<div className="flex-none">{comment.author}</div>
<div>{comment.text}</div>
</div>
))}
</div>
)}
</CardContent>
Expand Down

0 comments on commit f983230

Please sign in to comment.