@csmart/ngc-smart-victim 1.14.31 → 1.14.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1232,23 +1232,23 @@ class SmartVictimDetailComponent {
1232
1232
  saveVictim() {
1233
1233
  //guardian phone logic
1234
1234
  if (!this.victimForm.value.guardianNoPhoneFlag) {
1235
- if (this.victimForm.value.guardianHomePhone) {
1236
- if (this.victimForm.value.guardianHomePhone !== null) {
1237
- if (this.victimForm.value.guardianHomePhone !== "") {
1235
+ if (this.guardianHomePhoneControl.value) {
1236
+ if (this.guardianHomePhoneControl.value !== null) {
1237
+ if (this.guardianHomePhoneControl.value !== "") {
1238
1238
  this.guardianPhoneExistFlag = true;
1239
1239
  }
1240
1240
  }
1241
1241
  }
1242
- if (this.victimForm.value.guardianWorkPhone !== undefined) {
1243
- if (this.victimForm.value.guardianWorkPhone !== null) {
1244
- if (this.victimForm.value.guardianWorkPhone !== "") {
1242
+ if (this.guardianWorkPhoneControl.value !== undefined) {
1243
+ if (this.guardianWorkPhoneControl.value !== null) {
1244
+ if (this.guardianWorkPhoneControl.value !== "") {
1245
1245
  this.guardianPhoneExistFlag = true;
1246
1246
  }
1247
1247
  }
1248
1248
  }
1249
- if (this.victimForm.value.guardianCellPhone) {
1250
- if (this.victimForm.value.guardianCellPhone !== null) {
1251
- if (this.victimForm.value.guardianCellhone !== "") {
1249
+ if (this.guardianCellPhoneControl.value) {
1250
+ if (this.guardianCellPhoneControl.value !== null) {
1251
+ if (this.guardianCellPhoneControl.value !== "") {
1252
1252
  this.guardianPhoneExistFlag = true;
1253
1253
  }
1254
1254
  }
@@ -1270,23 +1270,23 @@ class SmartVictimDetailComponent {
1270
1270
  console.log(this.phoneValidationFlag);
1271
1271
  //advocate phone logic
1272
1272
  if (!this.victimForm.value.advocateNoPhoneFlag) {
1273
- if (this.victimForm.value.advocateHomePhone) {
1274
- if (this.victimForm.value.advocateHomePhone !== null) {
1275
- if (this.victimForm.value.advocateHomePhone !== "") {
1273
+ if (this.advocateHomePhoneControl.value) {
1274
+ if (this.advocateHomePhoneControl.value !== null) {
1275
+ if (this.advocateHomePhoneControl.value !== "") {
1276
1276
  this.advocatePhoneExistFlag = true;
1277
1277
  }
1278
1278
  }
1279
1279
  }
1280
- if (this.victimForm.value.advocateWorkPhone !== undefined) {
1281
- if (this.victimForm.value.advocateWorkPhone !== null) {
1282
- if (this.victimForm.value.advocateWorkPhone !== "") {
1280
+ if (this.advocateWorkPhoneControl.value !== undefined) {
1281
+ if (this.advocateWorkPhoneControl.value !== null) {
1282
+ if (this.advocateWorkPhoneControl.value !== "") {
1283
1283
  this.advocatePhoneExistFlag = true;
1284
1284
  }
1285
1285
  }
1286
1286
  }
1287
- if (this.victimForm.value.advocateCellPhone) {
1288
- if (this.victimForm.value.advocateCellPhone !== null) {
1289
- if (this.victimForm.value.advocateCellhone !== "") {
1287
+ if (this.advocateCellPhoneControl.value) {
1288
+ if (this.advocateCellPhoneControl.value !== null) {
1289
+ if (this.advocateCellPhoneControl.value !== "") {
1290
1290
  this.advocatePhoneExistFlag = true;
1291
1291
  }
1292
1292
  }