diff --git a/app/src/main/java/com/teamwss/websoso/ui/novelFeed/NovelFeedFragment.kt b/app/src/main/java/com/teamwss/websoso/ui/novelFeed/NovelFeedFragment.kt index ecc29f87b..89559eab6 100644 --- a/app/src/main/java/com/teamwss/websoso/ui/novelFeed/NovelFeedFragment.kt +++ b/app/src/main/java/com/teamwss/websoso/ui/novelFeed/NovelFeedFragment.kt @@ -38,7 +38,6 @@ import com.teamwss.websoso.ui.common.dialog.LoginRequestDialogFragment import com.teamwss.websoso.ui.createFeed.CreateFeedActivity import com.teamwss.websoso.ui.feedDetail.FeedDetailActivity import com.teamwss.websoso.ui.feedDetail.model.EditFeedModel -import com.teamwss.websoso.ui.main.MainActivity import com.teamwss.websoso.ui.main.feed.FeedItemClickListener import com.teamwss.websoso.ui.main.feed.adapter.FeedAdapter import com.teamwss.websoso.ui.main.feed.adapter.FeedType.Feed @@ -76,23 +75,13 @@ class NovelFeedFragment : BaseFragment(layout.fragment private fun onClickFeedItem() = object : FeedItemClickListener { override fun onProfileClick(userId: Long) { - when (novelFeedViewModel.isUserId(userId)) { - true -> - startActivity( - MainActivity.getIntent( - requireContext(), - MainActivity.FragmentType.MY_PAGE, - ) - ) - - false -> { - activityResultCallback.launch( - OtherUserPageActivity.getIntent( - requireContext(), - userId, - ) + if (novelFeedViewModel.isUserId(userId).not()) { + activityResultCallback.launch( + OtherUserPageActivity.getIntent( + requireContext(), + userId, ) - } + ) } }