Advertisement
psi_mmobile

Untitled

Oct 7th, 2022
1,365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   parseCertificateType(certificateType) {
  2.     certificateType.id = certificateType.certificate_type_id;
  3.  
  4.     certificateType.category = this.certificateCategories.find(
  5.       (certificateCategory) =>
  6.         certificateCategory.certificate_category_id ===
  7.         certificateType.certificate_category_id
  8.     );
  9.     certificateType.certificate_category = certificateType.category
  10.       ? certificateType.category.name
  11.       : '';
  12.  
  13.     certificateType.shareWithVoGroupId =
  14.       certificateType.share_with_vo_group_id === 'Y' ? true : false;
  15.  
  16.  
  17.       certificateType.companyName = this.userVehicleOwners.find(
  18.         (vehicleOwner) =>
  19.           vehicleOwner.vehicle_owner_id === certificateType.vehicle_owner_id
  20.       );
  21.       certificateType.company = certificateType.companyName ? certificateType.companyName.text : '';
  22.  
  23.     return certificateType;
  24.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement