From e3b25edd67cdfda374c4891a3aa46f27fd0309f6 Mon Sep 17 00:00:00 2001 From: bluehorn07 Date: Sun, 24 Dec 2023 21:03:16 +0900 Subject: [PATCH] fix mistake --- pages/reservation/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/reservation/index.jsx b/pages/reservation/index.jsx index 091c6eb..bc8f9aa 100644 --- a/pages/reservation/index.jsx +++ b/pages/reservation/index.jsx @@ -1,4 +1,4 @@ -import { useEffect } from 'react'; +import { useEffect, useState } from 'react'; import { PoPoAxios } from '@/utils/axios.instance'; import ReservationLayout from '@/components/reservation/reservation.layout' @@ -27,10 +27,10 @@ const ReservationPage = ({ } Promise.all([ - getCurrentPlaceReservations, - getCurrentEquipReservations, + getCurrentPlaceReservations(), + getCurrentEquipReservations(), ]).then(() => setIsLoading(false)); - }) + }, []) return (