diff --git a/source/component/EachShop.js b/source/component/EachShop.js index 71a4235..f41b055 100644 --- a/source/component/EachShop.js +++ b/source/component/EachShop.js @@ -26,14 +26,18 @@ const EachShop = ({data, key, isEnd}) => { "menu" : {'['} - {data.menu.map((item, index, array) => ( - - {' '} - {'{'} "{item.menuName}" : {item.menuPrice} {'}'} - {index !== array.length - 1 ? ',' : ''} - - - ))} + {data.menu ? ( + data.menu.map((item, index, array) => ( + + {' '} + {'{'} "{item.menuName}" : {item.menuPrice} {'}'} + {index !== array.length - 1 ? ',' : ''} + + + )) + ) : ( + 메뉴가 없습니다. + )} {']'},