update of experiences section to use DB
This commit is contained in:
@@ -7,7 +7,7 @@ function Skills() {
|
||||
const [error, setError] = useState(null);
|
||||
|
||||
useEffect(() => {
|
||||
const fetchProjects = async () => {
|
||||
const fetchSkills = async () => {
|
||||
try {
|
||||
const response = await fetch('/api/skills');
|
||||
if (!response.ok) {
|
||||
@@ -19,7 +19,7 @@ function Skills() {
|
||||
setError(err.message);
|
||||
}
|
||||
};
|
||||
fetchProjects();
|
||||
fetchSkills();
|
||||
}, []);
|
||||
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user