Skip to content

Commit

Permalink
Merge pull request #407 from GSM-MSG/hotfix/406-exclude-portfolio-fil…
Browse files Browse the repository at this point in the history
…e-url

🔁 포트폴리오 URL이 비어있는 상황에서는 무조건 빈 문자열을 반환함
  • Loading branch information
enbraining committed Jul 15, 2024
2 parents 4e0309e + fe0d566 commit 9ca0e77
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ class QueryCurrentUserProfileDetailUseCase(
techStacks.find { it.id == studentTechStack.techStackId }

private fun getStudentPortfolioUrl(student: Student.StudentWithUserInfo): String {
return when {
!student.portfolioUrl.isNullOrBlank() -> student.portfolioUrl
!student.portfolioFileUrl.isNullOrBlank() -> student.portfolioFileUrl
else -> ""
}
return if(!student.portfolioUrl.isNullOrBlank()) student.portfolioUrl else ""
}
}

0 comments on commit 9ca0e77

Please sign in to comment.