Skip to content

Commit

Permalink
chore: version 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoon-mind committed Sep 2, 2023
1 parent 9b9bf28 commit 71fdb8a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "up-d4te",
"version": "1.0.4",
"version": "1.0.5",
"description": "Recommend Dating Course in Korea with CLI",
"author": {
"name": "Sanghyeon Sim",
Expand Down
7 changes: 6 additions & 1 deletion source/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ const Search = ({setlist, setStation, setId, setStoreName, setSingleShop}) => {
return;
}
if(search === 'girlfriend') {
setlist(list => [...list, [['Not Found.'], search]]);
setlist(list => [...list, [['404 Not Found.'], search]]);
setSearch('');
return;
}
if(search === 'boyfriend') {
setlist(list => [...list, [['404 Not Found.'], search]]);
setSearch('');
return;
}
Expand Down
4 changes: 2 additions & 2 deletions source/component/EachShop.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const EachShop = ({data, key, isEnd}) => {
{'['}
<Newline />
{data.menu.map((item, index, array) => (
<Text key={index}>
<Text>
{' '}
{'{'} "{item.menuName}" : {item.menuPrice} {'}'}
{'{'} "{item.name}" : {item.price} {'}'}
{index !== array.length - 1 ? ',' : ''}
<Newline />
</Text>
Expand Down
3 changes: 2 additions & 1 deletion source/component/ShopDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const ShopView = ({data, reviewlist}) => {
"menu" : {'['}
<Newline />
{data.menu.map((item, index, array) => (
<Text>
<Text key={index}>
{' '}
{'{'} "{item.menuName}" : {item.menuPrice} {'}'}
{index !== array.length - 1 ? ',' : ''}
Expand All @@ -164,6 +164,7 @@ const ShopView = ({data, reviewlist}) => {
<Box flexDirection="column">
{reviewlist.map((item, index) => (
<ReviewView
key={index}
writer={item.userId}
content={item.content}
starRate={item.star}
Expand Down
11 changes: 7 additions & 4 deletions source/component/ShopPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,13 @@ const ShopPost = ({userId, category, setStoreName}) => {
const response = await fetchKakaoShops(shopTitle, category);
setKakaoShops(response.data['documents']);
if (response.data['documents'].length == 0) return;
setLatitude(kakaoShops[0].y);
setLongitude(kakaoShops[0].x);
setPhoneNumber(kakaoShops[0].phone);
setPlaceUrl(kakaoShops[0].place_url);
setLatitude(response.data['documents'][0].y);
setLongitude(response.data['documents'][0].x);
setPhoneNumber(response.data['documents'][0].phone);
setPlaceUrl(response.data['documents'][0].place_url);
// setLongitude(kakaoShops[0].x);
// setPhoneNumber(kakaoShops[0].phone);
// setPlaceUrl(kakaoShops[0].place_url);
setSelectedShopIndex(0);
};

Expand Down

0 comments on commit 71fdb8a

Please sign in to comment.