Skip to content

Commit

Permalink
reverted test code
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-bes committed Nov 26, 2023
1 parent 6b65857 commit 358f8e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/IPSForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export const IPSForm = ({ hasError, ipsPayload, onValidate }) => {
const handleSubmit = (event) => {
event.preventDefault();

if (!ipsPayload) {
return;
}

const patient = ipsPayload.entry.find(
(entry) => entry.resource.resourceType === "Patient"
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { LoadingIndicator } from "./LoadingIndicator";

export const Main = () => {
const [hasPayloadError, setHasPayloadError] = useState(false);
const [validated, setValidated] = useState(true);
const [validated, setValidated] = useState(false);
const [payload, setPayload] = useState(null);

const hash = window.location.hash;
Expand Down

0 comments on commit 358f8e5

Please sign in to comment.