diff --git a/src/registrar/assets/js/get-gov-admin.js b/src/registrar/assets/js/get-gov-admin.js index f8bba4967..1f5ab6734 100644 --- a/src/registrar/assets/js/get-gov-admin.js +++ b/src/registrar/assets/js/get-gov-admin.js @@ -830,7 +830,7 @@ function initializeWidgetOnList(list, parentId) { if (data.error) { // Clear the field if the SO doesn't exist $seniorOfficial.val("").trigger("change"); - console.error('Error in AJAX call: ' + data.error); + console.error("Error in AJAX call: " + data.error); return; } @@ -853,7 +853,7 @@ function initializeWidgetOnList(list, parentId) { $seniorOfficial.append(userOption).trigger("change"); } }) - .catch(error => console.error('Error fetching senior official:', error)); + .catch(error => console.error("Error fetching senior official: ", error)); } function handleStateTerritoryChange(stateTerritory, urbanizationField) { diff --git a/src/registrar/views/utility/api_views.py b/src/registrar/views/utility/api_views.py index f1cb7c75f..2c9414d1d 100644 --- a/src/registrar/views/utility/api_views.py +++ b/src/registrar/views/utility/api_views.py @@ -26,7 +26,7 @@ def get_senior_official_from_federal_agency_json(request): # Convert the agency object to a dictionary so_dict = model_to_dict(senior_official) - # The phone number field isn't json serializable, so we + # The phone number field isn't json serializable, so we # convert this to a string first if it exists. if "phone" in so_dict and so_dict.get("phone"): so_dict["phone"] = str(so_dict["phone"])