[CHORE] Wrap logEvent in a try/catch (#2361)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Youssef Muhamad 2020-07-31 15:24:38 -03:00 committed by GitHub
parent ac708dd32b
commit 4787821db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -20,8 +20,12 @@ export const logServerVersion = (serverVersion) => {
};
export const logEvent = (eventName, payload) => {
try {
analytics().logEvent(eventName, payload);
leaveBreadcrumb(eventName, payload);
} catch {
// Do nothing
}
};
export const setCurrentScreen = (currentScreen) => {