Skip to content

Commit b9c6a81

Browse files
Merge pull request #215 from OpenLake/harshitap1305-add-new-skill
Add loading state to submitNewSkill function
2 parents 4e58b47 + 2933a31 commit b9c6a81

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

frontend/src/hooks/useSkills.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export const useSkillForm = (onSuccess) => {
163163
};
164164

165165
const submitNewSkill = async () => {
166+
setLoading(true);
166167
try {
167168
const newSkillResponse = await api.post(
168169
`/api/skills/create-skill`,

0 commit comments

Comments
 (0)