Skip to content

Commit

Permalink
🚸 Store nftId in url for reader page
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Oct 21, 2024
1 parent 53bbb84 commit 0f055e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pages/reader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ export default {
);
return;
}
if (
(this.isLoginRequired || this.nftIsCustomMessageEnabled) &&
this.nftId &&
!this.$route.query.nftId
) {
this.$router.replace({
query: { ...this.$route.query, nftId: this.nftId },
});
}
} else if (this.isLoginRequired) {
this.connectWallet();
}
Expand Down

0 comments on commit 0f055e8

Please sign in to comment.