@propeller-commerce/propeller-v2-react-ui 0.23.0 → 0.23.1

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/index.js CHANGED
@@ -2787,7 +2787,8 @@ function machineLanguageCandidates(machineLanguage, language, extra) {
2787
2787
  async function resolveMachineAcrossLanguages(candidates, fetchOne) {
2788
2788
  for (const language of candidates) {
2789
2789
  try {
2790
- return { machine: await fetchOne(language), language };
2790
+ const machine = await fetchOne(language);
2791
+ if (machine !== null && machine !== void 0) return { machine, language };
2791
2792
  } catch (error) {
2792
2793
  if (!isMachineNotFound(error)) throw error;
2793
2794
  }