Skip to content

Commit

Permalink
Merge pull request #1144 from geyserfund/hot-fix/page-load-issue
Browse files Browse the repository at this point in the history
fix: unhandled error
  • Loading branch information
sajald77 authored Sep 5, 2023
2 parents 145a4a9 + bf3f5b0 commit 0b12cce
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/forms/markdown/helpers/StyleProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ export const StyleProvider = ({
)

useEffect(() => {
twttr.widgets
.load(document.getElementById(ID.project.story.markdown.container))
.catch((e: any) =>
captureException(e, {
tags: { area: 'twitter-widgets' },
}),
try {
twttr.widgets.load(
document.getElementById(ID.project.story.markdown.container),
)
} catch (e) {
captureException(e, {
tags: { area: 'twitter-widgets' },
})
}
}, [])

return (
Expand Down

0 comments on commit 0b12cce

Please sign in to comment.