chore: Number() -> parseInt() 변경

This commit is contained in:
2025-05-02 14:44:39 +09:00
parent 9b20dc4847
commit cbf582a18a
17 changed files with 35 additions and 28 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ function ModifyPage({ sequential }: { sequential: string }) {
</div>
<ModuleForm
form={form}
authorizationNo={Number(sequential)}
authorizationNo={parseInt(sequential)}
handleSave={updateAuthorization}
/>
</div>
+2 -2
View File
@@ -115,8 +115,8 @@ function ModuleForm({ form, authorizationNo, ...props }: BannerFormProps) {
value={field.value ?? ""}
onChange={(e) => {
const value = e.target.value;
if (isNaN(Number(value))) return;
field.onChange(Number(value));
if (isNaN(parseInt(value))) return;
field.onChange(parseInt(value));
}}
className="w-[12rem] !text-[1.3rem]"
placeholder="정렬순서 입력"