Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polishes from merged PR #386 feedbacks #605

Merged
merged 1 commit into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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