diff --git a/source/StationDetailType.js b/source/StationDetailType.js index c3fa3a6..bcaf717 100644 --- a/source/StationDetailType.js +++ b/source/StationDetailType.js @@ -43,11 +43,12 @@ const StationDetailType = ({ getAllPlaceCheck(1, station).then(res => { if (res.data['statusCode'] == 404) { setShops([]); + setStation(''); } else { setShops(res.data.body); + setStation(''); } }); - setStation(''); } }); return (