fix(modal): fix infinite rerender

- fix useEffect for twitter
- removes handling escape in modal
- don't limit contacts loading
- catch error on unloading
This commit is contained in:
Avarian Knight committed 2021-05-23 23:03:56 -05:00
1 parent 0e1d7f40b5
commit d95062d771
7 files changed
+14 -28

No files matched your search

@@ -25,7 +25,11 @@ if (!config.general.enableMultiChar) {
on('playerDropped', () => {
const src = getSource();
// Get identifier for player to remove
PlayerService.handleUnloadPlayerEvent(src, true);
try {
PlayerService.handleUnloadPlayerEvent(src, true);
} catch (e) {
playerLogger.debug(`${src} failed to unload, likely was never loaded in the first place.`)
}
});
// Can use this to debug the player table if needed. Disabled by default