Skip to content

Commit

Permalink
fix identity (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leouarz authored Apr 3, 2024
1 parent ea29b7a commit fce5a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/page-accounts/src/modals/IdentityMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function IdentityMain ({ address, className = '', onClose }: Props): React.React

useEffect((): void => {
if (identityOpt && identityOpt.isSome) {
const { info } = identityOpt.unwrap();

const identityData = identityOpt.unwrap();
const info = identityData.info || (identityData as any)[0].info as IdentityInfo

Check failure on line 93 in packages/page-accounts/src/modals/IdentityMain.tsx

View workflow job for this annotation

GitHub Actions / www (lint)

Unsafe member access [0] on an `any` value

Check failure on line 93 in packages/page-accounts/src/modals/IdentityMain.tsx

View workflow job for this annotation

GitHub Actions / www (lint)

Missing semicolon
setData(info.display, null, setValDisplay);

Check failure on line 94 in packages/page-accounts/src/modals/IdentityMain.tsx

View workflow job for this annotation

GitHub Actions / www (lint)

Expected blank line before this statement
setData(info.email, setHasEmail, setValEmail);
setData(info.legal, setHasLegal, setValLegal);
Expand Down

0 comments on commit fce5a9a

Please sign in to comment.