fixed contact message to return message and country to return country code

This commit was merged in pull request #58.
This commit is contained in:
VICTOR\anumu
2023-01-24 09:43:08 +01:00
parent cf6a83423e
commit 7098e8a2fe
+3 -3
View File
@@ -117,7 +117,7 @@ const Main = ({ brdcum }) => {
//CALLS THE API AFTER COMPONENT LOADS
useEffect(() => {
allCountry().then((data) => setCountries(Object.values(data.data)));
allCountry().then((data) => setCountries(Object.keys(data.data))).catch((err)=>console.log(err.message));
}, []);
// useEffect(() => {
@@ -251,10 +251,10 @@ const Main = ({ brdcum }) => {
<div className="form-group">
<textarea
name="msg"
name="message"
className="form-control"
placeholder="Your message"
value={values.msg}
value={values.message}
errorMessage='words have exceeded 350 characters!'
onChange={onChange}
maxLength={300}