Skip to content

Commit

Permalink
全角の対応
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubosaka committed Aug 11, 2024
1 parent 2347c91 commit 0327c83
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ export default function EditInvoiceModal(props: ModalProps) {
value={invoiceSponsorStyle.price}
onChange={(e) => {
onChangeSponsorStyle(
{ ...invoiceSponsorStyle, price: Number(e.target.value) },
{
...invoiceSponsorStyle,
price: isNaN(Number(e.target.value))
? invoiceSponsorStyle.price
: Number(e.target.value),
},
index,
);
}}
Expand Down

0 comments on commit 0327c83

Please sign in to comment.