Skip to content

Commit 401b0a6

Browse files
committed
fix(pgnupload): fix pgn upload
1 parent f641218 commit 401b0a6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/componets/lichess/UserPGNUpload.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ interface PGNUploaderProps {
1515
}
1616

1717
const UserPGNUploader: React.FC<PGNUploaderProps> = ({ loadPGN }) => {
18-
const [pgnContent, setPgnContent] = useState("");
1918
const [fileName, setFileName] = useState("");
2019
const [error, setError] = useState("");
2120

@@ -34,7 +33,6 @@ const UserPGNUploader: React.FC<PGNUploaderProps> = ({ loadPGN }) => {
3433
reader.onload = (event) => {
3534
const content = event.target?.result as string;
3635
if (content.trim()) {
37-
setPgnContent(content);
3836
setFileName(file.name);
3937
loadPGN(content);
4038
} else {

0 commit comments

Comments
 (0)