Skip to content

Commit 16ff1a1

Browse files
committed
fix: fix logic to include test environment too
1 parent 4ef213f commit 16ff1a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Hero/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import Container from '@/components/Container'
33
import EmergencyForm from '@/components/EmergencyForm'
44

55
const HeroSection: React.FC = () => {
6-
const showEmergencyForm = !process.env.NEXT_PUBLIC_ENVIRONMENT
6+
const environment = process.env.NEXT_PUBLIC_ENVIRONMENT
7+
const showEmergencyForm = !environment || environment === 'test'
78

89
return (
910
<section className="w-full bg-green py-5 lg:px-5">

0 commit comments

Comments
 (0)