Skip to content

Commit

Permalink
Merge pull request #2 from DXgovernance/bugfix/deployment-crash
Browse files Browse the repository at this point in the history
fix: Remove global error boundary.
  • Loading branch information
rossneilson authored Sep 6, 2022
2 parents 5352414 + 0fbafb2 commit 56f245d
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import App from './App';
import initializeI18Next from './i18n';
import { GlobalErrorBoundary } from './components/ErrorBoundary';
import * as serviceWorker from './serviceWorker';
import moment from 'moment';
import { EtherSWRManager } from 'components/EtherSWRManager';
Expand Down Expand Up @@ -35,20 +34,18 @@ moment.updateLocale('en', {

const Root = () => {
return (
<GlobalErrorBoundary>
<WagmiConfig client={client}>
<HashRouter>
<SyncRouterWithWagmi>
<EtherSWRManager>
<>
<App />
<EnsureReadOnlyConnection />
</>
</EtherSWRManager>
</SyncRouterWithWagmi>
</HashRouter>
</WagmiConfig>
</GlobalErrorBoundary>
<WagmiConfig client={client}>
<HashRouter>
<SyncRouterWithWagmi>
<EtherSWRManager>
<>
<App />
<EnsureReadOnlyConnection />
</>
</EtherSWRManager>
</SyncRouterWithWagmi>
</HashRouter>
</WagmiConfig>
);
};
const rootElement = document.getElementById('root');
Expand Down

0 comments on commit 56f245d

Please sign in to comment.