diff --git a/admin/src/components/Layout/index.tsx b/admin/src/components/Layout/index.tsx index d28600a8..5a180cf9 100644 --- a/admin/src/components/Layout/index.tsx +++ b/admin/src/components/Layout/index.tsx @@ -8,7 +8,7 @@ export default function Layout() { return ( }> -
+
diff --git a/admin/src/pages/LotteryParticipantList/index.tsx b/admin/src/pages/LotteryParticipantList/index.tsx index 4de92da9..1352ff21 100644 --- a/admin/src/pages/LotteryParticipantList/index.tsx +++ b/admin/src/pages/LotteryParticipantList/index.tsx @@ -15,7 +15,7 @@ export default function LotteryParticipantList() { const navigate = useNavigate(); const { handleOpenModal, ModalComponent } = useModal(); - const [selectedParticipant, setSelectedParticipant] = useState([]); + const [selectedExpectation, setSelectedExpectation] = useState([]); const phoneNumberRef = useRef(""); const phoneNumberInputRef = useRef(null); @@ -59,10 +59,10 @@ export default function LotteryParticipantList() { const data = await LotteryAPI.getLotteryExpectations({ participantId: participantId, }); - setSelectedParticipant(data); + setSelectedExpectation(data); }; - const expectations = selectedParticipant.map((participant) => [ + const expectations = selectedExpectation.map((participant) => [ participant.casperId, participant.expectation, ]);