Skip to content

Commit

Permalink
fix save upload
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxfighter committed Jul 5, 2024
1 parent 07e1341 commit f63c7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/App/views/Saves/components/UploadSaveForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UploadSaveForm = ({onSuccess}) => {
<div className="relative bg-white shadow text-black w-full">
<input
className="absolute left-0 top-0 opacity-0 cursor-pointer w-full h-full"
register={register('savefile', {required: true})}
{...register('savefile', {required: true})}
onChange={e => setFileName(e.currentTarget.files[0].name)}
type="file"/>
<div className="px-2 py-3">{fileName}</div>
Expand Down

0 comments on commit f63c7ff

Please sign in to comment.