Skip to content

Commit

Permalink
[cw|#63] confirm before deleting poets
Browse files Browse the repository at this point in the history
  • Loading branch information
connorwalsh committed Dec 26, 2018
1 parent f8e21e8 commit 2f3ea14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/dashboard/poet.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export class PoetSummary extends Component {
retirePoet,
} = this.props

// alert(`are you sure you want to retire ${poet.name}?`)

retirePoet(poet.id)
if (window.confirm(`are you sure you want to retire ${poet.name}?`)) {
retirePoet(poet.id)
}
}

render() {
Expand Down

0 comments on commit 2f3ea14

Please sign in to comment.