aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/handler.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-30 18:52:00 -0700
committerAdam Soltys <[email protected]>2024-08-30 18:52:00 -0700
commit8f01af248c67766a3bf07ef628268f4c3ec7f22e (patch)
tree0f5efabd144b720598441d9a638fd27d849628ff /src/lib/handler.js
parent7ca70dcbab180f1c30e57b2d1892e5ccce172e2d (diff)
downloadcoinos-ui-8f01af248c67766a3bf07ef628268f4c3ec7f22e.tar.gz
coinos-ui-8f01af248c67766a3bf07ef628268f4c3ec7f22e.zip
typescript
Diffstat (limited to 'src/lib/handler.js')
-rw-r--r--src/lib/handler.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/handler.js b/src/lib/handler.js
deleted file mode 100644
index 05e484ec..00000000
--- a/src/lib/handler.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import { goto } from "$app/navigation";
-import { applyAction } from "$app/forms";
-
-export default (submitting) =>
- ({ formElement, formData, action, cancel }) => {
- submitting = true;
- return async ({ result }) => {
- if (result.type === "redirect") {
- goto(result.location);
- } else {
- await applyAction(result);
- }
- };
- };