Skip to content

Commit

Permalink
Disable send buttons when report is cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
geraosio committed Jul 30, 2020
1 parent d421645 commit 83a2132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default class Home extends Vue {
}
get category (): string {
return this.selectedCategory.name
return this.selectedCategory ? this.selectedCategory.name : ''
}
get hasErrors (): boolean {
Expand Down Expand Up @@ -358,6 +358,7 @@ export default class Home extends Vue {
}
public clearReport () {
this.disableSendButtons = true
this._clearInputs()
}
Expand Down

1 comment on commit 83a2132

@geraosio
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.