homeflowjs 1.1.5 → 1.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "sideEffects": [
5
5
  "modal/**/*",
6
6
  "user/default-profile/**/*",
@@ -259,7 +259,7 @@ export default class DraggableMap {
259
259
  * this could either be from GBP to EUR, GBP to USD, EUR to USD, etc
260
260
  */
261
261
  if ( rates && selectedCurrency === 'GBP' && localCurrencyCode !== null && localCurrencyPrice !== null && localCurrencyCode !== 'GBP' ) {
262
- const value = localCurrencyPrice / rates[localCurrencyCode];
262
+ const value = localCurrencyPrice / (rates?.[localCurrencyCode] || 1);
263
263
  return formatter.format(Math.round(value));
264
264
  }
265
265