Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 4ff5556

Browse files
committed
NOL 멤버스 계정 프로필 라벨 추가
1 parent fd7d105 commit 4ff5556

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

packages/public-header/src/side-menu/profile.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ const PROFILE_EVENT_METADATA_LABEL = {
7373
photo: '프로필사진',
7474
}
7575

76+
const NOL_CONNECTED_LABEL = 'NOL 멤버스 계정'
77+
7678
export function Profile() {
7779
const user = useUser()
7880
const { trackEvent } = useEventTrackingContext()
@@ -81,9 +83,9 @@ export function Profile() {
8183
const providerIconSrc = user ? PROVIDER_INFO[user.provider].icon : undefined
8284
const badgeUrl = user ? user.mileage?.badges[0]?.icon.image_url : undefined
8385
const providerVisible = user && !user.nolConnected
84-
const providerLabel = providerVisible
85-
? PROVIDER_INFO[user.provider].label
86-
: null
86+
const profileLabel = providerVisible
87+
? user.email || PROVIDER_INFO[user.provider].label
88+
: NOL_CONNECTED_LABEL
8789

8890
const onProfileClick = (
8991
referrer: keyof typeof PROFILE_EVENT_METADATA_LABEL,
@@ -112,7 +114,7 @@ export function Profile() {
112114
{providerIconSrc && providerVisible ? (
113115
<SocialIcon src={providerIconSrc} alt="social login icon" />
114116
) : null}
115-
{user.email || providerLabel}
117+
{profileLabel}
116118
</UserEmailOrProvider>
117119
</Container>
118120

0 commit comments

Comments
 (0)