From 4da8b4e77e64fb1f410acb635c0f85d2a8b3603b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 17 Jan 2025 06:02:01 -0800 Subject: handle no zaps case --- lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils.ts') diff --git a/lib/utils.ts b/lib/utils.ts index 6649c752..a0a831d9 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -51,7 +51,7 @@ export const bip21 = (address, { amount, memo, tip, type }) => { return `${network}:${address}?${url.toString()}`; }; -export const getUser = async (username, fields) => { +export const getUser = async (username, fields = undefined) => { let update; if (username === "undefined") fail("invalid user"); const user = await migrate(username); -- cgit v1.2.3