Skip to content

Commit

Permalink
fix(WebexActivity): make WebexActivity work if an adapter isn't yet p…
Browse files Browse the repository at this point in the history
…resent on the context
  • Loading branch information
patricia0817 authored and cipak committed Mar 7, 2022
1 parent f960abd commit 04f2971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/WebexActivity/WebexActivity.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import WebexAdaptiveCard from '../WebexAdaptiveCard/WebexAdaptiveCard';
export default function WebexActivity({activityID, className, style}) {
const activity = useActivity(activityID);
const adapter = useContext(AdapterContext);
const hasCard = adapter.activitiesAdapter.hasAdaptiveCard(activity);
const hasCard = adapter?.activitiesAdapter?.hasAdaptiveCard(activity);

const [cssClasses, sc] = webexComponentClasses('activity', className);

Expand Down

0 comments on commit 04f2971

Please sign in to comment.