Skip to content

Commit

Permalink
fix : 파일이름
Browse files Browse the repository at this point in the history
fix : 파일이름
  • Loading branch information
phyuna0525 authored May 2, 2024
2 parents 6f27f69 + a1688f5 commit 1ebb272
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/BugReport/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const BugReport = () => {
content: "",
file_name: "",
});
const [fileName, setFileName] = useState<string>();
let filename = "";

const handleContent = ({ text, name }: { text: string; name: string }) => {
setData({ ...data, [name]: text });
Expand All @@ -34,7 +34,7 @@ const BugReport = () => {
{ file: selectedFile },
{
onSuccess: (data) => {
setFileName(data);
filename = data;
},
onError: (error) => {
alert(error.message);
Expand All @@ -54,7 +54,7 @@ const BugReport = () => {
setData({
title: "",
content: "",
file_name: fileName ? fileName : "",
file_name: filename ? filename : "",
});
},
onError: () => {
Expand Down

0 comments on commit 1ebb272

Please sign in to comment.