@csmart/ngc-smart-victim 1.14.25 → 1.14.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;
@@ -2009,8 +2019,13 @@ class NgcSmartVictimComponent {
2009
2019
  //show phone number on the victim list if any phone number exist.
2010
2020
  data.forEach((d) => {
2011
2021
  if (d.homePhone == null || d.homePhone == "") {
2012
- if (d.cellPhone != null || d.cellPhone != "") {
2013
- d.homePhone = d.cellPhone;
2022
+ if (d.cellPhone != null) {
2023
+ if (d.cellPhone != "") {
2024
+ d.homePhone = d.cellPhone;
2025
+ }
2026
+ else {
2027
+ d.homePhone = d.workPhone;
2028
+ }
2014
2029
  }
2015
2030
  else {
2016
2031
  d.homePhone = d.workPhone;