Skip to content

Commit

Permalink
Merge pull request #7734 from opencrvs/fix-informant-section-input-fl…
Browse files Browse the repository at this point in the history
…icker

fix: informant input flicker issue
  • Loading branch information
tahmidrahman-dsi authored Oct 7, 2024
2 parents fe92deb + bdc0ce9 commit cb47ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/src/views/RegisterForm/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ class RegisterFormView extends React.Component<FullProps, State> {
const { declaration } = this.props
const informantTypeChanged =
prevProps.declaration?.data?.informant?.informantType !==
declaration?.data?.informant?.informantType
declaration?.data?.informant?.informantType &&
Boolean(declaration?.data?.informant?.informantType)

// see https://github.com/opencrvs/opencrvs-core/issues/5820
if (informantTypeChanged) {
Expand Down

0 comments on commit cb47ef2

Please sign in to comment.