Skip to content

Commit

Permalink
[chore] #173 매퍼 수정, 사이드 이펙트 분기처리
Browse files Browse the repository at this point in the history
  • Loading branch information
t1nm1ksun committed Aug 27, 2024
1 parent 2bb2d71 commit 9e185f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ package org.sopt.dateroad.data.mapper.todata
import org.sopt.dateroad.domain.model.EditProfile
import org.sopt.dateroad.domain.model.Profile

fun Profile.toEditProfile(): EditProfile {
return EditProfile(
name = this.name,
tags = this.tag,
image = this.imageUrl ?: ""
)
}
fun Profile.toEditProfile(): EditProfile = EditProfile(
name = this.name,
tags = this.tag,
image = this.imageUrl
)
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package org.sopt.dateroad.domain.model
data class EditProfile(
val name: String = "",
val tags: List<String> = listOf(),
val image: String? = null
val image: String? = ""
)
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fun ProfileRoute(
when (profileSideEffect) {
is ProfileContract.ProfileSideEffect.NavigateToHome -> navigationToHome()
is ProfileContract.ProfileSideEffect.NavigateToMyPage -> navigationToMyPage()
else -> {}
is ProfileContract.ProfileSideEffect.PopBackStack -> popBackStack()
}
}
}
Expand Down Expand Up @@ -117,7 +117,6 @@ fun ProfileRoute(

)
}

LoadState.Loading -> DateRoadLoadingView()
LoadState.Success -> navigationToHome()
LoadState.Error -> DateRoadErrorView()
Expand Down

0 comments on commit 9e185f7

Please sign in to comment.