Skip to content

Commit c5fac93

Browse files
committed
Null checks
1 parent 8fc051c commit c5fac93

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/RequestBox/RequestBox.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,13 @@ export default class RequestBox extends Component {
171171
};
172172

173173
getPatients = () => {
174-
console.log(this.props.access_token.access_token);
174+
console.log("getPatients::access_token:", this.props.access_token?.access_token);
175175
this.setState({ openPatient: true });
176176
const params = {serverUrl: this.props.ehrUrl};
177-
console.log(this.props.access_token.access_token);
178-
if (this.props.access_token.access_token) {
177+
if (this.props.access_token?.access_token) {
179178
params["tokenResponse"] = {access_token: this.props.access_token.access_token}
180179
}
181-
console.log(params);
180+
console.log("getPatients::params", params);
182181
const client = FHIR.client(
183182
params
184183
);

0 commit comments

Comments
 (0)