Skip to content

Commit

Permalink
Merge pull request #671 from bobanetwork/fix/branch-naming-to-load-ec…
Browse files Browse the repository at this point in the history
…osystem-icons

Branch Name Update to load the data correctly from gateway-data.
  • Loading branch information
sk-enya authored Oct 29, 2024
2 parents 69eecd8 + c0acb24 commit 2553ec7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/util/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const WC_PROJECT_ID: EnvType = process.env.REACT_APP_WC_PROJECT_ID
export const DISABLE_WALLETCONNECT: EnvType =
process.env.REACT_APP_DISABLE_WALLETCONNECT

const GATEWAY_DATA_BRANCH: EnvType =
export const GATEWAY_DATA_BRANCH: EnvType =
process.env.REACT_APP_GATEWAY_DATA_BRANCH || 'main'

/*********************
Expand Down
4 changes: 2 additions & 2 deletions src/util/gitdata.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import TESTLogo from 'assets/images/test.svg'
import { GATEWAY_DATA_RAW } from './constant'
import { GATEWAY_DATA_BRANCH, GATEWAY_DATA_RAW } from './constant'

export const getCoinImage = (symbol: string): string => {
const logoURIbase =
Expand All @@ -13,5 +13,5 @@ export const getCoinImage = (symbol: string): string => {
}

export const getEcoImage = (name: string) => {
return `${GATEWAY_DATA_RAW}/feat/ecosystem-page/ecosystem/icons/${name}`
return `${GATEWAY_DATA_RAW}${GATEWAY_DATA_BRANCH}/ecosystem/icons/${name}`
}

0 comments on commit 2553ec7

Please sign in to comment.