diff --git a/src/components/RsvpCard/RsvpCard.js b/src/components/RsvpCard/RsvpCard.js index 309f329..63a3953 100644 --- a/src/components/RsvpCard/RsvpCard.js +++ b/src/components/RsvpCard/RsvpCard.js @@ -17,6 +17,7 @@ class RsvpCard extends React.Component { password: PropTypes.string, completed: PropTypes.boolean, attending: PropTypes.boolean, + ceremony: PropTypes.boolean, dietary: PropTypes.string, starter: PropTypes.string, main: PropTypes.string, @@ -47,6 +48,8 @@ class RsvpCard extends React.Component { if (prop === 'attending' && value === 'false') { return true; } + if (!this.props.person.ceremony) { return true; } + return (isOK(this.state.saveAttending) && isOK(this.state.saveStarter) && isOK(this.state.saveMain)); @@ -186,7 +189,12 @@ class RsvpCard extends React.Component { {this.state.saveAttending === 'error' ? : null} -