Skip to content

Commit

Permalink
fix : point of apiCall
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyyChoi committed Sep 1, 2023
1 parent 61dcbde commit 17bb5f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/StationDetailType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 17bb5f4

Please sign in to comment.