Skip to content

Commit

Permalink
[FIX] #61-링크 추가 화면에서 url로드 성공시 타이틀을 url 타이틀로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
l5x5l committed Aug 29, 2024
1 parent 0b2c69a commit 01230ca
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ class AddLinkViewModel @Inject constructor(
val response = getLinkCardUseCase.getLinkCard(linkUrl)
if (response is PokitResult.Success) {
reduce { state.copy(step = ScreenStep.IDLE, link = Link.fromDomainLinkCard(response.result)) }
if (response.result.title.isNotEmpty()) {
_title.update { response.result.title }
}
} else {
reduce { state.copy(step = ScreenStep.IDLE) }
}
Expand Down

0 comments on commit 01230ca

Please sign in to comment.