Skip to content

Commit 414b084

Browse files
committed
Make ContactBanner useable outside of MultiStepForm context
1 parent 97a17ec commit 414b084

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/fiscal-sponsorship/contact.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const phoneNumberUri = '+1-844-237-2290'
77
const email = '[email protected]'
88

99
export default function ContactBanner({ sx }) {
10-
const { step } = useMultiStepContext()
11-
const firstStep = step === 0
10+
const stepContext = useMultiStepContext()
11+
const firstStep = stepContext?.step === 0
1212

1313
return (
1414
<Flex
1515
sx={{
16-
display: firstStep ? 'block' : ['none', 'block'],
16+
display: firstStep ? 'flex' : ['none', 'flex'],
1717
bg: 'sunken',
1818
color: 'slate',
1919
alignItems: 'center',

0 commit comments

Comments
 (0)