Skip to content

Commit

Permalink
fix: made ini file required
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinrefvol committed Jan 24, 2025
1 parent c9d423d commit 7c22ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/HandleModel/FileUploader/FileUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export const FileUploader = ({
<SelectFile onClick={() => handleClick}>
{INI ? 'Select parameter INI file' : 'Select model NC file'}
</SelectFile>
{INI && '(optional)'}
{INI && '(required)'}
<input
id={`${acceptType.toLowerCase()}`}
required={!INI}
required={true}
type="file"
accept={`.${acceptType.toLowerCase()}`}
onChange={onChange}
Expand Down

0 comments on commit 7c22ee9

Please sign in to comment.