aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.ts2
1 files changed, 1 insertions, 1 deletions
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);