Skip to content
Snippets Groups Projects
Commit 7551681e authored by Jakub Lachór's avatar Jakub Lachór
Browse files

Fix problem on loading authorities in account page

parent dbefd30a
No related branches found
No related tags found
1 merge request!362Fix problem on loading authorities in account page
Pipeline #99502 canceled
......@@ -69,7 +69,7 @@ const AccountDetailsCard: React.FC<AccountDetailsCardProps> = ({
}
if (COPY_KEYS.includes(key)) {
let shortenedKey: string = "";
shortenedKey = `${userDetails[key].slice(0, 8)}...${userDetails[key].slice(userDetails[key].length - 5)}`
shortenedKey = `${userDetails?.[key]?.slice(0, 8)}...${userDetails?.[key]?.slice(userDetails[key].length - 5)}`
return (
<CopyToKeyboard value={userDetails[key]} displayValue={shortenedKey} />
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment