Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian50 committed Dec 31, 2024
1 parent 3f82b60 commit 4939210
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 61 deletions.
61 changes: 0 additions & 61 deletions src/components/HostCalls/form.tsx

This file was deleted.

2 changes: 2 additions & 0 deletions src/components/HostCalls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export const HostCalls = () => {
}, [storage]);

const onSubmit = async () => {
setError("");

try {
dispatch(setStorage(newStorage || []));
await dispatch(setAllWorkersStorage()).unwrap();
Expand Down

0 comments on commit 4939210

Please sign in to comment.