Skip to content

Commit

Permalink
feat:TOP-106 이모지 코드 매핑 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cwj-c committed Jan 5, 2025
1 parent 23dabda commit fdfcf1d
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ fun DailyUserCardResponse.UserInfo.IdealTypeResponse.toModel(): IdealTypeModel {
return IdealTypeModel(
title = name,
key = idx,
emojiCode = emojiCode
emojiCode = if (emojiCode.startsWith("U+")) {
emojiCode.removePrefix("U+")
} else {
emojiCode
}
)
}

fun DailyUserCardResponse.UserInfo.InterestResponse.toModel(): InterestModel {
return InterestModel(
title = name,
key = idx,
emojiCode = emojiCode
emojiCode = if (emojiCode.startsWith("U+")) {
emojiCode.removePrefix("U+")
} else {
emojiCode
}
)
}

Expand Down

0 comments on commit fdfcf1d

Please sign in to comment.