abmp-npm 1.10.2 → 1.10.3

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": "abmp-npm",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "check-cycles": "madge --circular .",
@@ -1858,6 +1858,12 @@ async function personalDetailsOnReady({
1858
1858
  itemMemberObj.toShowPhone = null;
1859
1859
  }
1860
1860
 
1861
+ if (itemMemberObj.phones) {
1862
+ itemMemberObj.phones = itemMemberObj.phones.filter(
1863
+ phone => phone !== phoneToRemove.phoneNumber
1864
+ );
1865
+ }
1866
+
1861
1867
  const updatedData = currentData.filter(item => item._id !== phoneId);
1862
1868
  renderPhonesList(updatedData);
1863
1869
  checkFormChanges(FORM_SECTION_HANDLER_MAP.CONTACT_BOOKING);