Skip to content

Commit 1d201fd

Browse files
committed
#372 [fix] re-render error fix
1 parent 383d653 commit 1d201fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Home/IndexScore/IndexScore.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ const IndexScore = ({ country }: { country: STOCK_COUNTRY }) => {
2424
const stockIndexNames = country === 'KOREA' ? ['공포지수', '코스피', '코스닥'] : ['공포지수', 'S&P 500', '나스닥'];
2525
const stockIndexScores = transformed.slice(...(country === 'KOREA' ? [0, 3] : [3, 6]));
2626

27-
if (suspend) return null;
28-
2927
const { Modal, openModal } = useModal({
3028
Component: FearPopUp,
3129
});
3230

31+
if (suspend) return null;
32+
3333
return (
3434
<IndexScoreContainer>
3535
{stockIndexScores.map(({ score, delta }, idx) => (

0 commit comments

Comments
 (0)