Skip to content

Commit

Permalink
feat: 목록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj2713 committed Aug 12, 2024
1 parent a411b4d commit 533053a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Layout() {
return (
<ErrorBoundary fallback={<ErrorElement />}>
<CookiesProvider>
<div className="h-screen">
<div className="overflow-hidden h-screen">
<Header />
<div className="mb-[80px]">
<Outlet />
Expand Down
6 changes: 3 additions & 3 deletions admin/src/pages/LotteryParticipantList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function LotteryParticipantList() {
const navigate = useNavigate();

const { handleOpenModal, ModalComponent } = useModal();
const [selectedParticipant, setSelectedParticipant] = useState<LotteryExpectationsType[]>([]);
const [selectedExpectation, setSelectedExpectation] = useState<LotteryExpectationsType[]>([]);
const phoneNumberRef = useRef<string>("");
const phoneNumberInputRef = useRef<HTMLInputElement>(null);

Expand Down Expand Up @@ -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,
]);
Expand Down

0 comments on commit 533053a

Please sign in to comment.