Skip to content

Commit

Permalink
Merge pull request #181 from Salesforce-org-Impact-Labs/lwc_Service_Reqs
Browse files Browse the repository at this point in the history
updated getter logic for website
  • Loading branch information
AIrwin33 authored Aug 13, 2020
2 parents 2e2d5ad + ed37ecc commit 9d7fae0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions force-app/main/default/classes/ServiceRecommendation.cls
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ public class ServiceRecommendation {
@AuraEnabled
public String MailingCity { get; set; }

@AuraEnabled
public String MailingState { get; set; }

@AuraEnabled
public String Website {
get {
if(Website != null){
if(Website.startsWith('https://')){
if(Website.startsWith('https://') || Website.startsWith('http://')){
Website = Website;
}else{
Website = 'https://'+ Website;
Expand Down Expand Up @@ -142,4 +145,4 @@ public class ServiceRecommendation {
@AuraEnabled
public String CommentText { get; set; }
}
}
}

0 comments on commit 9d7fae0

Please sign in to comment.