@medplum/react 2.0.22 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7566,7 +7566,7 @@
7566
7566
  onSuccess();
7567
7567
  }
7568
7568
  })
7569
- .catch(console.log);
7569
+ .catch((err) => notifications.showNotification({ color: 'red', message: core.normalizeErrorString(err) }));
7570
7570
  }
7571
7571
  }, [medplum, onCode, onSuccess]);
7572
7572
  const handleAuthResponse = React.useCallback((response) => {
@@ -7598,7 +7598,7 @@
7598
7598
  medplum
7599
7599
  .get('auth/login/' + loginCode)
7600
7600
  .then(handleAuthResponse)
7601
- .catch(console.error);
7601
+ .catch((err) => notifications.showNotification({ color: 'red', message: core.normalizeErrorString(err) }));
7602
7602
  }
7603
7603
  }, [medplum, loginCode, login, handleAuthResponse]);
7604
7604
  return (React.createElement(Document, { width: 450 }, (() => {