Skip to content

Commit

Permalink
fix(alerts): check for undefined alert description on save
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Sep 18, 2017
1 parent b29a7a7 commit d0cb067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/alerts/components/AlertEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class AlertEditor extends Component {
if (title.length > ALERT_TITLE_CHAR_LIMIT) {
return window.alert(`Alert title must be ${ALERT_TITLE_CHAR_LIMIT} characters or less`)
}
if (description.length > ALERT_DESCRIPTION_CHAR_LIMIT) {
if (description && description.length > ALERT_DESCRIPTION_CHAR_LIMIT) {
return window.alert(`Alert description must be ${ALERT_DESCRIPTION_CHAR_LIMIT} characters or less`)
}
if (!end || !start) {
Expand Down

0 comments on commit d0cb067

Please sign in to comment.