only use remote object if its defined.

This commit is contained in:
Jason Wall 2020-11-25 10:52:03 -05:00
parent 3ab1e1ad62
commit 2bf8fd38a4

View File

@ -324,7 +324,7 @@ export class StorageService extends SubscriberBase {
// since you updated the local variable above, this remote update will
// get picked up by the remote subscription below.
if (v.syncCardsAcrossDevices) {
if (this.cardsRemoteObject && v.syncCardsAcrossDevices) {
this.cardsRemoteObject.set(v.currentCards);
}
})