mirror of
https://github.com/strapi/strapi.git
synced 2025-09-21 14:31:16 +00:00
Simpler env check
This commit is contained in:
parent
1607f85910
commit
fa8c5bc1f8
@ -91,8 +91,7 @@ const MarketPlacePage = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Not using !isInDevelopmentMode to avoid matching the condition when it's null
|
if (!isInDevelopmentMode) {
|
||||||
if (isInDevelopmentMode === false) {
|
|
||||||
toggleNotification({
|
toggleNotification({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
message: {
|
message: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user