Parcourir la source

remove ads on dev

AykutSarac il y a 3 ans
Parent
commit
9fa7878972
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/components/CarbonAds/index.tsx

+ 2 - 0
src/components/CarbonAds/index.tsx

@@ -3,6 +3,8 @@ import React from "react";
 const isDevelopment = process.env.NODE_ENV === "development";
 
 export const CarbonAds = () => {
+  if (isDevelopment) return null;
+  
   return (
     <>
       <script