summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tbe-last/table/documents-sheet.tsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/tbe-last/table/documents-sheet.tsx b/lib/tbe-last/table/documents-sheet.tsx
index ac0dc739..5dfc4f75 100644
--- a/lib/tbe-last/table/documents-sheet.tsx
+++ b/lib/tbe-last/table/documents-sheet.tsx
@@ -363,7 +363,7 @@ export function DocumentsSheet({
{isLoading ? (
<div className="p-8 text-center">Loading...</div>
) : (
- <ScrollArea className="h-[calc(100vh-250px)]">
+ <ScrollArea className="pr-4" style={{height: 'calc(100vh - 300px)'}}>
<Table>
<TableHeader>
<TableRow>
@@ -505,8 +505,15 @@ export function DocumentsSheet({
<TableCell>
<span className="text-xs text-muted-foreground">
- {doc.uploadedAt ? formatDate(doc.uploadedAt, "KR") :
- doc.submittedAt ? formatDate(doc.submittedAt, "KR") : "-"}
+ {(() => {
+ // Buyer 문서의 경우 createdAt 사용, Vendor 문서의 경우 submittedAt 사용
+ if (doc.documentSource === 'buyer') {
+ return doc.createdAt ? formatDate(doc.createdAt, "KR") : "-";
+ } else if (doc.documentSource === 'vendor') {
+ return doc.submittedAt ? formatDate(doc.submittedAt, "KR") : "-";
+ }
+ return "-";
+ })()}
</span>
</TableCell>