File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ function Home () {
77
77
useEffect ( ( ) => {
78
78
fetchData ( ) ;
79
79
80
- // const intervalId = setInterval(fetchData, 5000); // 5초마다 실행
80
+ const intervalId = setInterval ( fetchData , 5000 ) ; // 5초마다 실행
81
81
82
- // return () => clearInterval(intervalId);
82
+ return ( ) => clearInterval ( intervalId ) ;
83
83
84
84
// eslint-disable-next-line react-hooks/exhaustive-deps
85
85
} , [ ] ) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const Wait = ({ orderInfo }) => {
40
40
// OrderBox가 생성될 때마다 개수 증가
41
41
// setOrderCount((prev) => ({ ...prev, pending: orderInfo.orders.length }));
42
42
43
- if ( playSound && orderInfo . orders . length !== 0 ) {
43
+ if ( playSound && orderInfo ? .orders ? .length !== 0 ) {
44
44
AudioPlayer ( ) ; // 소리 재생
45
45
}
46
46
} , [ orderInfo , playSound ] ) ;
You can’t perform that action at this time.
0 commit comments