how can i fix this error
#Trailhead Challenges
Hi ,
https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8VdsSAFTry this
public class AccountHandler {
public static Account insertNewAccount(String AccountName){
Account acct = new Account(Name=AccountName);
try {
insert acct;
} catch (DMLException e){
return null;
}
return acct;
}
}