Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update mutate.ts

Steven Teya3590e999d6c
diff --git a/apps/web/lib/swr/mutate.ts b/apps/web/lib/swr/mutate.ts
index 496ba28b95..58a0f3611a 100644
--- a/apps/web/lib/swr/mutate.ts
+++ b/apps/web/lib/swr/mutate.ts
@@ -1,7 +1,7 @@
import { mutate } from "swr";
-export const mutatePrefix = async (prefix: string | string[]) => {
- await mutate(
+export const mutatePrefix = (prefix: string | string[]) =>
+ mutate(
(key) =>
typeof key === "string" &&
(Array.isArray(prefix)
@@ -10,10 +10,9 @@ export const mutatePrefix = async (prefix: string | string[]) => {
undefined,
{ revalidate: true },
);
-};
-export const mutateSuffix = async (suffix: string | string[]) => {
- await mutate(
+export const mutateSuffix = (suffix: string | string[]) =>
+ mutate(
(key) =>
typeof key === "string" &&
(Array.isArray(suffix)
@@ -24,4 +23,3 @@ export const mutateSuffix = async (suffix: string | string[]) => {
revalidate: true,
},
);
-};