@myinterview/widget-react 1.0.39 → 1.0.40-beta-5021b7a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -22016,7 +22016,7 @@ const prod_config = {
22016
22016
 
22017
22017
  // eslint-disable-next-line import/no-mutable-exports
22018
22018
  const config$1 = (configEnv) => {
22019
- switch (configEnv || (typeof process !== 'undefined' && process.env.REACT_APP_ENV)) {
22019
+ switch (configEnv || process.env.REACT_APP_ENV) {
22020
22020
  case 'development':
22021
22021
  case 'dev':
22022
22022
  case 'local':
@@ -42492,7 +42492,9 @@ const Widget = ({ candidate, job, video, config, disabled = false, buttonText =
42492
42492
  });
42493
42493
  }, [candidate.email]);
42494
42494
  useEffect(() => {
42495
- updateVideoAxiosBaseURL(config$1(config.env).serverUrl);
42495
+ if (config.env) {
42496
+ updateVideoAxiosBaseURL(config$1(config.env).serverUrl);
42497
+ }
42496
42498
  }, [config.env]);
42497
42499
  const setLayoutStyleProperties = () => {
42498
42500
  if (mainRef.current) {