Skip to content

Commit cab649e

Browse files
committed
✨ [feat] 내 프로필에서 다른 메뉴 누를 때만 reload하게 로직 추가
1 parent 635f838 commit cab649e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Fitfty/Projects/Profile/Sources/Profile/ViewControllers/ProfileViewController.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ final public class ProfileViewController: UIViewController {
132132
}
133133

134134
@objc func didTapMyFitftyMenu(_ sender: Any?) {
135+
guard menuType == .bookmark else {
136+
return
137+
}
135138
isRefreshProfileImage = false
136139
collectionView.isScrollEnabled = true
137140
emptyView.isHidden = true
@@ -140,6 +143,9 @@ final public class ProfileViewController: UIViewController {
140143
}
141144

142145
@objc func didTapBookmarkMenu(_ sender: Any?) {
146+
guard menuType == .myFitfty else {
147+
return
148+
}
143149
isRefreshProfileImage = false
144150
collectionView.isScrollEnabled = true
145151
emptyView.isHidden = true

0 commit comments

Comments
 (0)