From 0d45848cfe54bd50a31452b5bf0482b1d8404a24 Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Mon, 8 Feb 2021 20:52:03 -0600 Subject: [PATCH] Minor --- chat/ads/ad-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/ads/ad-manager.ts b/chat/ads/ad-manager.ts index d1ad972..394ac22 100644 --- a/chat/ads/ad-manager.ts +++ b/chat/ads/ad-manager.ts @@ -225,7 +225,7 @@ export class AdManager { static onConnectionClosed(): void { - AdManager.recoverableCharacter = core.characters.ownCharacter.name; + AdManager.recoverableCharacter = _.get(core, 'characters.ownCharacter.name', ''); AdManager.recoverableAds = _.map( _.filter(core.conversations.channelConversations, (c) => ((c.adManager) && (c.adManager.isActive()))),