Skip to content

Commit c5f9d01

Browse files
authored
Merge pull request #83 from devrnt/chore/only-display-name-in-development
chore: add display name conditionally
2 parents 912ce9e + 3484d8e commit c5f9d01

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)