散布実績: 名称未入力時のバリデーションエラーを追加

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Akira
2026-03-17 20:05:36 +09:00
parent 4e06318985
commit daae1a42e5

View File

@@ -358,6 +358,10 @@ function SpreadingPageContent() {
const handleSave = async () => {
if (!form) return;
setError(null);
if (!form.name.trim()) {
setError('名称を入力してください。');
return;
}
if (!form.date) {
setError('散布日を入力してください。');
return;