Skip to content

Commit

Permalink
replace isProduction with isDevelopment
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Mar 28, 2024
1 parent 5ba7f30 commit b16e0d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/views/home/Home.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TotalDonations from './TotalDonations';
import DonationsCount from './DonationsCount';
import NewDonorsCount from './NewDonorsCount';
import NewDonorsDonationTotalUsd from './NewDonorsDonationTotalUsd';
import { isProduction } from '../../../configuration';
import { isDevelopment } from '../../../configuration';

const HomeIndex = () => {
return (
Expand All @@ -19,7 +19,7 @@ const HomeIndex = () => {
<DonationsCount />
<hr />
<TotalDonations />
{!isProduction && (
{isDevelopment && (
<>
<hr />
<NewDonorsCount />
Expand Down
8 changes: 4 additions & 4 deletions src/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const isProduction = process.env.NEXT_PUBLIC_ENV === 'production';
export const isDevelopment = process.env.NEXT_PUBLIC_ENV === 'development';

const BASE_ROUTE = isProduction
? 'https://mainnet.serve.giveth.io'
: 'https://impact-graph.serve.giveth.io';
const BASE_ROUTE = isDevelopment
? 'https://impact-graph.serve.giveth.io'
: 'https://mainnet.serve.giveth.io';

const config = {
BACKEND_LINK: `${BASE_ROUTE}/graphql`,
Expand Down

0 comments on commit b16e0d9

Please sign in to comment.