Added metadata to Bugsnag if it's defined

This commit is contained in:
Jori Lallo
2017-10-17 19:36:59 -07:00
parent a3a083be88
commit 582c7748ba

View File

@ -73,6 +73,15 @@ const Auth = ({ children }: AuthProps) => {
}),
};
if (window.Bugsnag) {
Bugsnag.user = {
id: user.id,
name: user.name,
teamId: team.id,
team: team.name,
};
}
authenticatedStores.collections.fetchAll();
}