Skip to content

Commit

Permalink
change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Justice Arthur committed Jul 19, 2022
1 parent 39eafc8 commit f676775
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libs/Environment/betaChecker/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ function isBetaBuild() {
fetch(CONST.PLAY_STORE_URL)
.then(res => res.text())
.then((text) => {
const productionVersionMatch = text.match(/\[\[\["\d+\.\d+\.\d+/);
if (!productionVersionMatch) {
const productionVersionSearch = text.match(/\[\[\["\d+\.\d+\.\d+/);
if (!productionVersionSearch) {
resolve(false);
}

const productionVersion = productionVersionMatch[0].match(/\d+\.\d+\.\d+/);
const productionVersion = productionVersionSearch[0].match(/\d+\.\d+\.\d+/);

// If we have a match for the production version regex and the current version is not the same
// as the production version, we are on a beta build
const isBeta = productionVersion && productionVersionMatch[0].trim() !== version;
const isBeta = productionVersion && productionVersionSearch[0].trim() !== version;
resolve(isBeta);
})
.catch(() => {
Expand Down

0 comments on commit f676775

Please sign in to comment.