+
⚠️
+
エラーが発生しました
+
+ {this.state.error?.message}
+
+
+
+ );
+ }
+ return this.props.children;
+ }
+}
diff --git a/src/components/ImportPage.tsx b/src/components/ImportPage.tsx
index a86a957..94a9bd3 100644
--- a/src/components/ImportPage.tsx
+++ b/src/components/ImportPage.tsx
@@ -78,7 +78,7 @@ export default function ImportPage() {
// 振替としてスキップされた取引(振替=1 のrawRecords)
const skippedTransfers = useMemo(() =>
- rawRecords.filter(r => r.振替 === '1' && r.ID).sort((a, b) => b.日付.localeCompare(a.日付)),
+ rawRecords.filter(r => r.振替 === '1' && r.ID).sort((a, b) => (b.日付 ?? '').localeCompare(a.日付 ?? '')),
[rawRecords]
);