[CHORE] Wrap logEvent in a try/catch (#2361)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
ac708dd32b
commit
4787821db9
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue