aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-02-28 08:49:57 -0800
committerAdam Soltys <[email protected]>2025-02-28 08:49:57 -0800
commit8f2d05805fece1db5b40bb077d87e3cf60c36766 (patch)
tree2cc133ec789dd00b03d9b80a1e47c6e3c9b1fc52 /src/routes/(app)
parent269e27b52523bdcca69195877804c8f863f32f8d (diff)
downloadcoinos-ui-1.0.0.tar.gz
coinos-ui-1.0.0.zip
max_amount in msatsv1.0.0
Diffstat (limited to 'src/routes/(app)')
-rw-r--r--src/routes/(app)/apps/new/+page.server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/(app)/apps/new/+page.server.ts b/src/routes/(app)/apps/new/+page.server.ts
index d8cd4e0f..eaecfd68 100644
--- a/src/routes/(app)/apps/new/+page.server.ts
+++ b/src/routes/(app)/apps/new/+page.server.ts
@@ -11,10 +11,13 @@ export const load = async ({ parent, url }) => {
`/login?redirect=${encodeURIComponent(url.pathname + url.search)}`,
);
+ let max_amount = url.searchParams.get("max_amount");
+ max_amount = max_amount ? Math.round(Number(max_amount) / 1000) : undefined;
+
const app = {
name: url.searchParams.get("name"),
pubkey: url.searchParams.get("pubkey"),
- max_amount: url.searchParams.get("max_amount"),
+ max_amount,
budget_renewal: url.searchParams.get("budget_renewal"),
};