analytics: avoid error log when there are no handlers

This commit is contained in:
Saúl Ibarra Corretgé 2020-07-10 16:07:53 +02:00 committed by Saúl Ibarra Corretgé
parent 3da1b65757
commit 53281c2d42
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ export function createHandlers({ getState }: { getState: Function }) {
})
.catch(e => {
analytics.dispose();
logger.error(e);
if (handlers.length !== 0) {
logger.error(e);
}
return [];
}));