Skip to content

Commit

Permalink
Merge 75f9e78 into 8917ca1
Browse files Browse the repository at this point in the history
  • Loading branch information
gre authored Jul 7, 2022
2 parents 8917ca1 + 75f9e78 commit 6ba1c97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ export const ConnectEnvsToSentry = () => {
setSentryTagsEverywhere(tags);
};
// We need to wait firebase to load the data and then we set once for all the tags
setTimeout(syncTheTags, 5000);
const timeout = setTimeout(syncTheTags, 5000);
// We also try to regularly update them so we are sure to get the correct tags (as these are dynamic)
setInterval(syncTheTags, 60000);
const interval = setInterval(syncTheTags, 60000);
return () => {
clearTimeout(timeout);
clearInterval(interval);
};
}, []);
return null;
};
2 changes: 1 addition & 1 deletion apps/ledger-live-mobile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import * as Sentry from "@sentry/react-native";
import Config from "react-native-config";
import VersionNumber from "react-native-version-number";

import { getEnv } from "@ledgerhq/live-common/lib/env";
import { getEnv } from "@ledgerhq/live-common/env";
import BackgroundRunnerService from "./services/BackgroundRunnerService";
import App, { routingInstrumentation } from "./src";
import { getEnabled } from "./src/components/HookSentry";
Expand Down

0 comments on commit 6ba1c97

Please sign in to comment.