@fto-consult/expo-ui 7.8.8 → 7.8.9

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": "@fto-consult/expo-ui",
3
- "version": "7.8.8",
3
+ "version": "7.8.9",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -94,9 +94,9 @@ export default function UserProfileScreen({fields,...p}){
94
94
  Preloader.open("Modification en cours...");
95
95
  const toSave = {...user,...data};
96
96
  if(changeElectronUrl){
97
- ELECTRON.setAppUrl(data.mainElectronAppUrl);
98
- if(ELECTRON.getAppUrl() === data.mainElectronAppUrl){
99
- notify(`L'url de l'application a été définie à la valeur : ${data.mainElectronAppUrl}. cette valeur sera prise en compte au rédémarrage de l'application`);
97
+ if(ELECTRON.getAppUrl() !== data.mainElectronAppUrl && isValidUrl(data.mainElectronAppUrl)){
98
+ ELECTRON.setAppUrl(data.mainElectronAppUrl);
99
+ notify.success(`L'url de l'application a été définie à la valeur : ${ELECTRON.getAppUrl()}. cette valeur sera prise en compte au rédémarrage de l'application`);
100
100
  }
101
101
  }
102
102
  return Auth.upsertUser(toSave,true).then((response)=>{