@csmart/ngc-smart-victim 1.14.25 → 1.14.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -1081,7 +1081,7 @@ class SmartVictimDetailComponent {
1081
1081
  });
1082
1082
  }
1083
1083
  back() {
1084
- //this.onSave.emit(this.victimDetail);
1084
+ this.onSave.emit(this.victimDetail);
1085
1085
  this.router.navigate(['victimList']);
1086
1086
  }
1087
1087
  deleteVictim() {
@@ -1914,8 +1914,13 @@ class NgcSmartVictimComponent {
1914
1914
  //show phone number on the victim list if any phone number exist.
1915
1915
  data.forEach((d) => {
1916
1916
  if (d.homePhone == null || d.homePhone == "") {
1917
- if (d.cellPhone != null || d.cellPhone != "") {
1918
- d.homePhone = d.cellPhone;
1917
+ if (d.cellPhone != null) {
1918
+ if (d.cellPhone != "") {
1919
+ d.homePhone = d.cellPhone;
1920
+ }
1921
+ else {
1922
+ d.homePhone = d.workPhone;
1923
+ }
1919
1924
  }
1920
1925
  else {
1921
1926
  d.homePhone = d.workPhone;
@@ -1945,8 +1950,13 @@ class NgcSmartVictimComponent {
1945
1950
  //show phone number on the victim list if any phone number exist.
1946
1951
  data.forEach((d) => {
1947
1952
  if (d.homePhone == null || d.homePhone == "") {
1948
- if (d.cellPhone != null || d.cellPhone != "") {
1949
- d.homePhone = d.cellPhone;
1953
+ if (d.cellPhone != null) {
1954
+ if (d.cellPhone != "") {
1955
+ d.homePhone = d.cellPhone;
1956
+ }
1957
+ else {
1958
+ d.homePhone = d.workPhone;
1959
+ }
1950
1960
  }
1951
1961
  else {
1952
1962
  d.homePhone = d.workPhone;
@@ -1961,6 +1971,7 @@ class NgcSmartVictimComponent {
1961
1971
  }
1962
1972
  }
1963
1973
  }
1974
+ // phone number format on the victim list
1964
1975
  formatPhoneNumber(phoneNumberString) {
1965
1976
  if (!phoneNumberString)
1966
1977
  return "";
@@ -2009,8 +2020,13 @@ class NgcSmartVictimComponent {
2009
2020
  //show phone number on the victim list if any phone number exist.
2010
2021
  data.forEach((d) => {
2011
2022
  if (d.homePhone == null || d.homePhone == "") {
2012
- if (d.cellPhone != null || d.cellPhone != "") {
2013
- d.homePhone = d.cellPhone;
2023
+ if (d.cellPhone != null) {
2024
+ if (d.cellPhone != "") {
2025
+ d.homePhone = d.cellPhone;
2026
+ }
2027
+ else {
2028
+ d.homePhone = d.workPhone;
2029
+ }
2014
2030
  }
2015
2031
  else {
2016
2032
  d.homePhone = d.workPhone;