Skip to content

Commit

Permalink
Fix missing await in mission form deletion handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Apr 8, 2024
1 parent 634bbdf commit fa2ad95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function MissionForm() {
}, [dispatch])

const handleDelete = useCallback(async () => {
const isDeleted = dispatch(deleteMission(missionIdRef.current))
const isDeleted = await dispatch(deleteMission(missionIdRef.current))
if (!isDeleted) {
setIsDeletionConfirmationDialogOpen(false)
}
Expand Down

0 comments on commit fa2ad95

Please sign in to comment.