fuma 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,10 @@ export function useForm({ onSubmit, onSuccess, onResetError, onError, onFail, su
30
30
  }
31
31
  setError[key](issue.message);
32
32
  });
33
+ const issuesKeys = issues
34
+ .map(({ path }) => path[0])
35
+ .filter((k, i, self) => self.indexOf(k) === i);
36
+ toast.warning('Invalid form', { description: issuesKeys.join(', ') });
33
37
  }
34
38
  if (message) {
35
39
  toast.warning(message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod and more",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",