Skip to content

Commit

Permalink
πŸ› Fix incorrect assignment of author name
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Oct 25, 2024
1 parent a61ddfc commit d3f440f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ export default class IscnRegisterForm extends Vue {
index: any
}) {
this.isOpenAuthorDialog = true
this.currentAuthorDialogType = type
if (type === AuthorDialogType.author) {
logTrackerEvent(this, 'ISCNCreate', 'EditAuthor', '', 1)
const { name, wallet, url, likerId, authorDescription } = this.author
Expand Down Expand Up @@ -1220,6 +1220,15 @@ export default class IscnRegisterForm extends Vue {
}
deleteAuthor() {
if (this.currentAuthorDialogType === AuthorDialogType.author) {
this.author = {
name: '',
wallet: [],
url: [],
likerId: '',
authorDescription: '',
}
}
this.authors.splice(this.activeEditingAuthorIndex, 1)
this.dismissAuthorDialog()
}
Expand Down

0 comments on commit d3f440f

Please sign in to comment.