Skip to content

Commit

Permalink
[TA25277786] follow import order, change countryCode var name in find…
Browse files Browse the repository at this point in the history
…CountryName function
  • Loading branch information
sfiguere committed Dec 12, 2024
1 parent eaae314 commit f943f9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datahub-web-react/src/app/entity/user/UserInfoSideBar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import GlobeIcon from '../../../images/Globe.svg';
import { countries } from 'country-data-list';
import { Divider, message, Space, Button, Typography, Tag } from 'antd';
import React, { useEffect, useState } from 'react';
import { EditOutlined, MailOutlined, PhoneOutlined, SlackOutlined } from '@ant-design/icons';
import GlobeIcon from '../../../images/Globe.svg';
import { useUpdateCorpUserPropertiesMutation } from '../../../graphql/user.generated';
import { EntityRelationship, DataHubRole } from '../../../types.generated';
import UserEditProfileModal from './UserEditProfileModal';
Expand Down Expand Up @@ -122,9 +122,9 @@ export default function UserInfoSideBar({ sideBarData, refetch }: Props) {
const dataHubRoleName = dataHubRoles && dataHubRoles.length > 0 && (dataHubRoles[0]?.entity as DataHubRole).name;

let countryName;
const findCountryName = (countryCode) => {
const findCountryName = (code) => {
try {
countryName = countries[countryCode].name;
countryName = countries[code].name;
} catch (error) {
countryName = '';
}
Expand Down

0 comments on commit f943f9b

Please sign in to comment.