Skip to content
Snippets Groups Projects

fix crash issue when loading certain user profiles - 302

Closed mcfarhat requested to merge mcfarhat-302-fix_crash_user_profile into develop
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -67,7 +67,7 @@ const AccountDetailsCard: React.FC<AccountDetailsCardProps> = ({
</div>
);
}
if (COPY_KEYS.includes(key)) {
if (userDetails[key] && COPY_KEYS.includes(key)) {
let shortenedKey: string = "";
shortenedKey = `${userDetails[key].slice(0, 8)}...${userDetails[key].slice(userDetails[key].length - 5)}`
return (
Loading