Skip to content

Commit

Permalink
[KAN-120] 마이페이지 > 내 리뷰: 다른 음식점 리뷰로 보이는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok committed May 31, 2024
1 parent e4c3aec commit f5c088d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/StoreCompoForR.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export default function StoreCompoForR(props) {
const [storeInfo, setStoreInfo] = useState([]);

const restaurantDetail = async () => {
console.log('Id: ', storeData.id);
console.log('Id: ', storeData.restaurantId);
try {
const response = await axios.get(
`${API_URL}/v1/restaurants/${storeData.id}`,
`${API_URL}/v1/restaurants/${storeData.restaurantId}`,
{
headers: {Authorization: `Bearer ${context.accessToken}`},
},
Expand Down Expand Up @@ -86,7 +86,7 @@ export default function StoreCompoForR(props) {
</View>
<View style={{flex: 1, marginLeft: 12}}>
<Text style={styles.storeName} numberOfLines={1}>
{storeInfo.name}
{storeInfo.name}.1
</Text>
<View
style={{
Expand Down
1 change: 1 addition & 0 deletions src/screens/mypage/MypageScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default function MyPageScreen() {
reviewer: review.username,
body: review.content,
},
restaurantId: review.restaurantId,
}));

if (page === 0) {
Expand Down

0 comments on commit f5c088d

Please sign in to comment.