diff --git a/backend/app/plugins/wiaas/includes/api/class-wiaas-rest-customer.php b/backend/app/plugins/wiaas/includes/api/class-wiaas-rest-customer.php index 48d7ddb..87533b3 100644 --- a/backend/app/plugins/wiaas/includes/api/class-wiaas-rest-customer.php +++ b/backend/app/plugins/wiaas/includes/api/class-wiaas-rest-customer.php @@ -138,7 +138,7 @@ class Wiaas_REST_Customer_API { if (!is_string($company_name) || strlen($company_name) < 1){ - return self::generate_wiaas_response('ADD_COPMANY_NAME', 'error', Wiaas_Customer::get_customer_info($customer_id)); + return self::generate_wiaas_response('ADD_COMPANY_NAME', 'error', Wiaas_Customer::get_customer_info($customer_id)); } if (!is_string($vat_code) || strlen($vat_code) < 1){ diff --git a/frontend/src/constants/profileSettingsConstants.js b/frontend/src/constants/profileSettingsConstants.js index b6c6dba..8477a1e 100644 --- a/frontend/src/constants/profileSettingsConstants.js +++ b/frontend/src/constants/profileSettingsConstants.js @@ -57,7 +57,7 @@ export const profileTexts = { PROFILE_NOT_CHANGED: 'No changes!', NOT_COMPANY_ADMIN: 'You are not allowed to change the company information! Contact your company admin user.', ADD_VAT: 'The vat code can not be empty!', - ADD_COPMANY_NAME: 'The company name can not be empty!', + ADD_COMPANY_NAME: 'The company name can not be empty!', COMPANY_UPDATED: 'Company info updated!', COMPANY_NOT_CHANGED: 'No changes!', ADD_COMPANY: 'Invalid company!',