We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f641218 commit 401b0a6Copy full SHA for 401b0a6
src/componets/lichess/UserPGNUpload.tsx
@@ -15,7 +15,6 @@ interface PGNUploaderProps {
15
}
16
17
const UserPGNUploader: React.FC<PGNUploaderProps> = ({ loadPGN }) => {
18
- const [pgnContent, setPgnContent] = useState("");
19
const [fileName, setFileName] = useState("");
20
const [error, setError] = useState("");
21
@@ -34,7 +33,6 @@ const UserPGNUploader: React.FC<PGNUploaderProps> = ({ loadPGN }) => {
34
33
reader.onload = (event) => {
35
const content = event.target?.result as string;
36
if (content.trim()) {
37
- setPgnContent(content);
38
setFileName(file.name);
39
loadPGN(content);
40
} else {
0 commit comments