romankurnovskii / electron-react-template

MIT License
33 stars 3 forks source link

use default import for isDev to avoid an object value #27

Open ifedapoolarewaju opened 11 months ago

ifedapoolarewaju commented 11 months ago

I noticed this when trying to publish my app that the resulting value for isDev was an object of the form { default: false } hence it is always truthy in the codebase.

This change is importing the default right off the bat so the resulting value is simply the boolean false or true