Skip to content

Commit

Permalink
Merge pull request polkassembly#1570 from polkassembly/origin/kr/iden…
Browse files Browse the repository at this point in the history
…tity-fix

identity hot fixes
  • Loading branch information
KanishkaRajputd authored Apr 25, 2024
2 parents 8d756f1 + c638320 commit 85f1358
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/OnchainIdentity/IdentityForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const IdentityForm = ({
form={form}
initialValues={{ displayName, email: email?.value, legalName, twitter: twitter?.value }}
>
{alreadyVerifiedfields?.twitter && alreadyVerifiedfields?.email && alreadyVerifiedfields?.displayName && (
{!!alreadyVerifiedfields?.twitter && !!alreadyVerifiedfields?.email && !!alreadyVerifiedfields?.displayName && !alreadyVerifiedfields.alreadyVerified && (
<Alert
className='mb-6'
type='warning'
Expand Down Expand Up @@ -721,7 +721,11 @@ const IdentityForm = ({
variant='default'
buttonsize='xs'
/>
{alreadyVerifiedfields?.twitter && alreadyVerifiedfields?.email && alreadyVerifiedfields?.displayName && handleAllowSetIdentity() ? (
{!!alreadyVerifiedfields?.twitter &&
!!alreadyVerifiedfields?.email &&
!!alreadyVerifiedfields?.displayName &&
handleAllowSetIdentity() &&
!alreadyVerifiedfields.alreadyVerified ? (
<CustomButton
onClick={handleSetIdentity}
loading={loading}
Expand Down

0 comments on commit 85f1358

Please sign in to comment.