homeflowjs 1.1.5 → 1.1.7
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/Jenkinsfile
CHANGED
|
@@ -67,6 +67,7 @@ pipeline {
|
|
|
67
67
|
steps {
|
|
68
68
|
sh 'git config --global user.email "devops@homeflow.co.uk"'
|
|
69
69
|
sh 'git config --global user.name "Homeflow CI"'
|
|
70
|
+
sh 'yarn config set registry https://registry.npmjs.org'
|
|
70
71
|
sh 'yarn publish --new-version ${PUBLISH_VERSION}'
|
|
71
72
|
sh 'git show'
|
|
72
73
|
sh 'git push git@bitbucket.org:homeflow_developers/homeflowjs HEAD:main'
|
package/app/hf-initialize.jsx
CHANGED
|
@@ -76,8 +76,9 @@ const hfInitialize = () => {
|
|
|
76
76
|
const flash = hash.split('flash/')[1];
|
|
77
77
|
const message = Homeflow.get(`flash-message-${flash}`);
|
|
78
78
|
const type = flash.includes('error') ? 'error' : hashTypes[flash];
|
|
79
|
+
const duration = Homeflow.get('notify-duration') || 10000;
|
|
79
80
|
|
|
80
|
-
notify(message, type, { duration:
|
|
81
|
+
notify(message, type, { duration: duration });
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
ReactDOM.render(
|
package/package.json
CHANGED
|
@@ -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
|
|