Skip to content

Commit

Permalink
Restore line
Browse files Browse the repository at this point in the history
  • Loading branch information
ynurmahomed committed Oct 22, 2024
1 parent ecf4f7a commit 0de4369
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ interface IdentifierInputProps {
}

const IdentifierInput: React.FC<IdentifierInputProps> = ({ patientIdentifier, fieldName }) => {
const { autoGeneration, initialValue, identifierValue, identifierName, required, selectedSource } = patientIdentifier;
const { t } = useTranslation();
const { defaultPatientIdentifierTypes } = useConfig();
const { identifierTypes } = useContext(ResourcesContext);
Expand All @@ -27,6 +26,7 @@ const IdentifierInput: React.FC<IdentifierInputProps> = ({ patientIdentifier, fi
() => identifierTypes.find((identifierType) => identifierType.uuid === patientIdentifier.identifierTypeUuid),
[patientIdentifier, identifierTypes],
);
const { autoGeneration, initialValue, identifierValue, identifierName, required, selectedSource } = patientIdentifier;
const manualEntryEnabled = selectedSource?.autoGenerationOption?.manualEntryEnabled;
const [hideInputField, setHideInputField] = useState(autoGeneration || initialValue === identifierValue);
const name = `identifiers.${fieldName}.identifierValue`;
Expand Down

0 comments on commit 0de4369

Please sign in to comment.