diff --git a/components/admin/announcement/AnnounceEdit.tsx b/components/admin/announcement/AnnounceEdit.tsx index 29081bd01..6cb143410 100644 --- a/components/admin/announcement/AnnounceEdit.tsx +++ b/components/admin/announcement/AnnounceEdit.tsx @@ -32,6 +32,15 @@ export default function AnnounceEdit() { resetHandler(); }, []); + const resetHandler = async () => { + try { + const res = await instance.get('/pingpong/announcement'); + setContent(res?.data.content); + } catch (e) { + alert(e); + } + }; + if (!user) return null; const currentUserId = user.intraId; @@ -77,15 +86,6 @@ export default function AnnounceEdit() { } }; - const resetHandler = async () => { - try { - const res = await instance.get('/pingpong/announcement'); - setContent(res?.data.content); - } catch (e) { - alert(e); - } - }; - return (
⚠ 선물한 아이템은 환불 및 취소가 불가합니다 ⚠
+⚠ 선물은 환불 및 취소가 불가합니다 ⚠