Skip to content

Commit

Permalink
♻️Refactor getRemoteConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Dec 16, 2024
1 parent c797442 commit b3508e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/dapp/src/helpers/getRemoteConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { configFile } from '@/constants/constants';
const isLocal = process.env.NEXT_PUBLIC_IS_LOCAL
const localDeployment = require('../../../contracts/.soroban/deployments.json')
export const getRemoteConfig = async (network: string) => {
if(isLocal === 'true') {
return localDeployment
} else if (isLocal === 'false') {
if (isLocal === 'false') {
const deployments = await configFile(network)
return deployments
} else if(isLocal === 'true') {
return localDeployment
}
}

0 comments on commit b3508e5

Please sign in to comment.