diff --git a/src/components/NotificationView.js b/src/components/NotificationView.js index 59731f992152f9b20da17059381da31ea7010927..d63d0253b0f585b9ad7d904fb9eaced0fa28b3d9 100644 --- a/src/components/NotificationView.js +++ b/src/components/NotificationView.js @@ -86,6 +86,11 @@ export default class NotificationView extends React.Component { </button> </form> )} + {this.props.role === "admin" && + (this.props.gameState === "ENDED" || + this.props.gameState === "CREATED") && ( + <p>Notifications can only be sent if the game is ongoing</p> + )} </div> {notifications} </div>