Skip to content

Commit

Permalink
Fix #1748: Disable release notifications in RC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed Aug 3, 2018
1 parent a60491c commit 1724448
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/Layout/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ class Footer extends React.Component {
function(json) {
let oldVersion = String(json.tag_name);
let newVersion = String(APP_VERSION);
if (oldVersion !== newVersion) {
let isReleaseCandidate =
APP_VERSION.indexOf("rc") !== -1;
if (!isReleaseCandidate && oldVersion !== newVersion) {
this.setState({newVersion});
}
}.bind(this)
Expand Down Expand Up @@ -322,6 +324,8 @@ class Footer extends React.Component {
let version = version_match
? `.${version_match[1]}`
: ` ${APP_VERSION}`;
let rc_match = APP_VERSION.match(/-rc[0-9]$/);
if (rc_match) version += rc_match[0];
let updateStyles = {display: "inline-block", verticalAlign: "top"};
let logoProps = {};

Expand Down

0 comments on commit 1724448

Please sign in to comment.