Skip to content

Commit

Permalink
only show "so many items left" if not in trial
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jun 24, 2024
1 parent bc05cfc commit 09972b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion external/@worldbrain/memex-common
16 changes: 8 additions & 8 deletions src/sidebar/annotations-sidebar/containers/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -897,12 +897,7 @@ export class SidebarContainerLogic extends UILogic<
loadState: { $set: 'running' },
})

if (fullPageUrl == null) {
return
}
this.fullPageUrl = fullPageUrl

const currentUser = await this.options.authBG.getCurrentUser()
const currentUser = await this.options.authBG?.getCurrentUser()
if (currentUser) {
this.emitMutation({
currentUserId: { $set: currentUser.id ?? null },
Expand Down Expand Up @@ -949,8 +944,13 @@ export class SidebarContainerLogic extends UILogic<
renderHighlights: true,
})
}
this.syncCachePageListsState(this.fullPageUrl)
await this.setPageActivityState(this.fullPageUrl)
if (fullPageUrl == null) {
return
}
this.fullPageUrl = fullPageUrl

this.syncCachePageListsState(fullPageUrl)
await this.setPageActivityState(fullPageUrl)

if (isUrlPDFViewerUrl(window.location.href, { runtimeAPI })) {
const width = SIDEBAR_WIDTH_STORAGE_KEY
Expand Down

0 comments on commit 09972b7

Please sign in to comment.