Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(profile): catch error for profile api and console log error (carb…
…on-design-system#5088) ### Related Ticket(s) [Unhandled Runtime Error carbon-design-system#32](carbon-design-system/carbon-for-ibm-dotcom-nextjs-template#32) ### Description Catch the profile api call error and console log it in attempt to prevent error overlay from appearing in nextjs template dev mode. ### Changelog **Changed** - catch error and console log while returning `Unauthenticated` <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information