fix: make dialog context warn on development environment
This commit is contained in:
parent
541292d8cc
commit
7ae5f7fd6d
@ -23,7 +23,7 @@ const DialogContext = React.createContext<
|
||||
>([
|
||||
initialDialogContext,
|
||||
() => {
|
||||
if (process.env.NODE_ENV && process.env.NODE_ENV !== "development") {
|
||||
if (process.env.NODE_ENV && process.env.NODE_ENV === "development") {
|
||||
console.warn(
|
||||
"It seems like you're using DialogContext outside of a provider."
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user