@chrryai/chrry 1.5.22 → 1.5.23

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
@@ -1902,7 +1902,7 @@ var init_utils = __esm({
1902
1902
  };
1903
1903
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
1904
1904
  config = getSiteConfig(getClientHostname());
1905
- VERSION = config.version || "1.5.22";
1905
+ VERSION = config.version || "1.5.23";
1906
1906
  getSlugFromPathname = (path) => {
1907
1907
  return getAppAndStoreSlugs(path, {
1908
1908
  defaultAppSlug: config.slug,
@@ -24208,7 +24208,7 @@ function DataProvider({ children, ...rest }) {
24208
24208
  const [instructions, setInstructions] = (0, import_react21.useState)([]);
24209
24209
  const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
24210
24210
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
24211
- const VERSION4 = "1.5.22";
24211
+ const VERSION4 = "1.5.23";
24212
24212
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
24213
24213
  const {
24214
24214
  API_URL: API_URL2,
@@ -31144,8 +31144,8 @@ function Weather({
31144
31144
  return data;
31145
31145
  }
31146
31146
  const [isCityModalOpen, setIsCityModalOpen] = (0, import_react43.useState)(false);
31147
- const city = (user || guest)?.city || weather?.location;
31148
- const country = (user || guest)?.country || weather?.country;
31147
+ const city = weather?.location || (user || guest)?.city || "";
31148
+ const country = weather?.country || (user || guest)?.country || "";
31149
31149
  function getCountryCode(countryName) {
31150
31150
  const code = import_i18n_iso_countries2.default.getAlpha2Code(countryName, "en");
31151
31151
  return code || countryName;