Skip to content

Commit 3484d8e

Browse files
committed
chore: add display name conditionally
1 parent 912ce9e commit 3484d8e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/wizardContext.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import * as React from 'react';
33
import { WizardValues } from './types';
44

55
const WizardContext = React.createContext<WizardValues | null>(null);
6-
WizardContext.displayName = 'WizardContext';
6+
7+
if (__DEV__) {
8+
WizardContext.displayName = 'WizardContext';
9+
}
710

811
export default WizardContext;

0 commit comments

Comments
 (0)