Skip to content

Commit

Permalink
Fix order of declarations in Constants.js
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech committed Oct 14, 2024
1 parent 5bd5006 commit a3c4562
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deployFullstackToDockerHub.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# build and push a docker image from the latest push to "develop" branch
# this script is not currently used, as the web app is running on Heroku
on:
push:
branches:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deployWebAPIOnlyToDockerHub.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# build and push a docker image from the latest push to "develop" branch
# this script is not currently used, as the web app is running on Heroku

on:
push:
branches:
Expand All @@ -25,4 +27,3 @@ jobs:
tag_with_sha: true
add_git_labels: true
labels: description="Food Oasis",maintained="[email protected]"

14 changes: 7 additions & 7 deletions client/src/helpers/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export const MAPBOX_ACCESS_TOKEN = requiredEnvVar(

// Begin Tenant-Specific Constants

const TENANT_SUBDOMAINS = {
1: ["la."],
3: ["hi.", "hawaii"],
5: ["mck.", "mckinney."],
6: ["sb."],
};

function getTenantId() {
if (process.env.NODE_ENV === "development") {
return Number(optionalEnvVar("REACT_APP_TENANT_ID")) || 1;
Expand All @@ -59,13 +66,6 @@ function getTenantId() {

export const TENANT_ID = getTenantId();

const TENANT_SUBDOMAINS = {
1: ["la."],
3: ["hi.", "hawaii"],
5: ["mck.", "mckinney."],
6: ["sb."],
};

const TENANT_NAMES = {
1: "Los Angeles",
3: "Hawaii",
Expand Down

0 comments on commit a3c4562

Please sign in to comment.