Skip to content

Commit

Permalink
Update ui/src/App.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Rabi Siddique  <[email protected]>
  • Loading branch information
amessbee and rabi-siddique authored Aug 16, 2024
1 parent a2efc1b commit a01986c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ if (codeSpaceHostName) {
ENDPOINTS.API = `https://${codeSpaceHostName}-1317.${codeSpaceDomain}`;
ENDPOINTS.RPC = `https://${codeSpaceHostName}-26657.${codeSpaceDomain}`;
}

if (codeSpaceHostName && codeSpaceDomain) {
ENDPOINTS.API = `https://${codeSpaceHostName}-1317.${codeSpaceDomain}`;

Check failure on line 38 in ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / unit (20)

Insert `··`
ENDPOINTS.RPC = `https://${codeSpaceHostName}-26657.${codeSpaceDomain}`;

Check failure on line 39 in ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / unit (20)

Insert `··`
} else {
console.error("Missing environment variables: VITE_HOSTNAME or VITE_GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN");

Check failure on line 41 in ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / unit (20)

Replace `console.error("Missing·environment·variables:·VITE_HOSTNAME·or·VITE_GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN"` with `··console.error(⏎····'Missing·environment·variables:·VITE_HOSTNAME·or·VITE_GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN',⏎··`
}
const watcher = makeAgoricChainStorageWatcher(ENDPOINTS.API, 'agoriclocal');

interface AppState {
Expand Down

0 comments on commit a01986c

Please sign in to comment.