Skip to content

Commit

Permalink
[fix]選択肢がない時の表示とボタンの非活性化
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubosaka committed Apr 1, 2024
1 parent 186c03f commit 938fa21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export default function EditModal(props: ModalProps) {
{sponsor.name}
</option>
))}
{!sponsors && <option>企業が登録されていません</option>}
</Select>
</div>
<p className='text-black-600'>協賛スタイル</p>
Expand Down Expand Up @@ -354,7 +355,7 @@ export default function EditModal(props: ModalProps) {
onClick={() => {
submit(formData);
}}
disabled={isStyleError}
disabled={!sponsors || isStyleError}
>
編集完了
</PrimaryButton>
Expand Down

0 comments on commit 938fa21

Please sign in to comment.