Skip to content

Commit

Permalink
Merge get minter into get collection
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolman committed Oct 15, 2024
1 parent fc0ceca commit e94e114
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions apps/studio/src/views/studio/Collection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,25 +97,14 @@ export default defineComponent({
const erc721Id = this.$route.params.id;
if (!erc721Id) return;
await Promise.all([this.getCollection(erc721Id), this.getMinter(erc721Id), this.listMetadata(erc721Id)]);
await Promise.all([this.getCollection(erc721Id), this.listMetadata(erc721Id)]);
},
methods: {
async getCollection(erc721Id: string) {
try {
this.isLoading = true;
await this.collectionStore.get(erc721Id);
} catch (error: any) {
toast(error.message, 'light', 3000, () => {
return;
});
} finally {
this.isLoading = false;
}
},
async getMinter(erc721Id: string) {
try {
this.isLoading = true;
await this.collectionStore.getMinter(erc721Id);
this.collectionStore.getMinter(erc721Id);
} catch (error: any) {
toast(error.message, 'light', 3000, () => {
return;
Expand Down

0 comments on commit e94e114

Please sign in to comment.