Skip to content

Commit

Permalink
fix unsubscribables issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mholtzman committed Aug 15, 2023
1 parent 4798779 commit 697af3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/externalData/surface/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ const Surface = () => {

const subscribeToItems = (addr: string, items: CollectionItem[]) => {
const account = addr.toLowerCase()

if (!subscriptions[account]) return

const sub = Pylon.items.subscribe(items, {
onStarted() {
log.debug(`Created subscription to items`, { account, items })
Expand Down

0 comments on commit 697af3e

Please sign in to comment.