Skip to content

Conversation

@kkartunov
Copy link
Collaborator

Related JIRA Ticket:
https://topcoder.atlassian.net/browse/

What's in this PR?

@kkartunov kkartunov requested a review from vas3a July 10, 2023 09:37
@kkartunov
Copy link
Collaborator Author

@vas3a requesting your look on how the method to update is called...

export function notifyUniNavi(profile: UserProfile): void {
if (window?.tcUniNav) {
window.tcUniNav('update', '*', {
user: profile,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Only one issue: for some reason the API returns profile.photoURL but the uninav is accepting photoUrl. Can you do it like this?

window.tcUniNav('update', '*', {
  user: { ...profile,  photoUrl: profile.photoURL }
})

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, okay. This explains why navi photo looks weird after it executes.

@kkartunov kkartunov merged commit ffee77f into dev Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants