Skip to content

Commit

Permalink
🎨 Lazy fetch owner in reader page
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jan 17, 2025
1 parent c091bdb commit 27bf4b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/reader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { LIKECOIN_API_BASE } from '~/constant';
import { logTrackerEvent } from '~/util/EventLogger';
export default {
name: 'PDFReaderPage',
name: 'ReaderPage',
mixins: [nftMixin, walletMixin],
beforeRouteLeave(to, from, next) {
this.trackReaderClose();
Expand Down Expand Up @@ -104,7 +104,7 @@ export default {
if (address) {
await Promise.all([
this.fetchUserCollectedCount(),
this.updateNFTOwners(),
this.lazyFetchNFTOwners(),
]);
if (
(!this.userCollectedCount && this.isLoginRequired) ||
Expand Down Expand Up @@ -138,7 +138,7 @@ export default {
if (this.getSessionWallet) {
await Promise.all([
this.fetchUserCollectedCount(),
this.updateNFTOwners(),
this.lazyFetchNFTOwners(),
]);
if (
(!this.userCollectedCount && this.isLoginRequired) ||
Expand Down

0 comments on commit 27bf4b1

Please sign in to comment.