Skip to content

Commit

Permalink
M2-6212: Fix promise error from dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanofcardio committed Apr 10, 2024
1 parent edc2129 commit 5c3a835
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import '~/assets/fonts/Atkinson/atkinson.css';

import './index.css';

const setUp = async () => {
const setUp = () => {
Mixpanel.init();
await i18nManager.initialize();
i18nManager.initialize();

Check warning on line 13 in src/app/App.tsx

View workflow job for this annotation

GitHub Actions / ESLint

src/app/App.tsx#L13

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator (@typescript-eslint/no-floating-promises)
};

// eslint-disable-next-line @typescript-eslint/no-floating-promises
setUp();

function App() {
Expand Down

0 comments on commit 5c3a835

Please sign in to comment.