Skip to content

Commit b16e0d9

Browse files
committed
replace isProduction with isDevelopment
1 parent 5ba7f30 commit b16e0d9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/views/home/Home.index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import TotalDonations from './TotalDonations';
66
import DonationsCount from './DonationsCount';
77
import NewDonorsCount from './NewDonorsCount';
88
import NewDonorsDonationTotalUsd from './NewDonorsDonationTotalUsd';
9-
import { isProduction } from '../../../configuration';
9+
import { isDevelopment } from '../../../configuration';
1010

1111
const HomeIndex = () => {
1212
return (
@@ -19,7 +19,7 @@ const HomeIndex = () => {
1919
<DonationsCount />
2020
<hr />
2121
<TotalDonations />
22-
{!isProduction && (
22+
{isDevelopment && (
2323
<>
2424
<hr />
2525
<NewDonorsCount />

src/configuration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
export const isProduction = process.env.NEXT_PUBLIC_ENV === 'production';
1+
export const isDevelopment = process.env.NEXT_PUBLIC_ENV === 'development';
22

3-
const BASE_ROUTE = isProduction
4-
? 'https://mainnet.serve.giveth.io'
5-
: 'https://impact-graph.serve.giveth.io';
3+
const BASE_ROUTE = isDevelopment
4+
? 'https://impact-graph.serve.giveth.io'
5+
: 'https://mainnet.serve.giveth.io';
66

77
const config = {
88
BACKEND_LINK: `${BASE_ROUTE}/graphql`,

0 commit comments

Comments
 (0)