diff options
| author | Adam Soltys <[email protected]> | 2025-07-25 21:32:44 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-25 21:32:44 -0700 |
| commit | bf5ab3fdb6d6c1ffc1e1dc66b737d501e4fd710d (patch) | |
| tree | 0c44bec74630977d9d4cf9535ddadf8915a8b4ae /src | |
| parent | f24ec95a246ab38bb3253425fd8446dd93176fe9 (diff) | |
| download | coinos-ui-bf5ab3fdb6d6c1ffc1e1dc66b737d501e4fd710d.tar.gz coinos-ui-bf5ab3fdb6d6c1ffc1e1dc66b737d501e4fd710d.zip | |
fix redirect url for fund sweeps
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/fund/[id]/sweep/[...amount]/+page.server.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.server.ts b/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.server.ts index d0e49fcc..021015ee 100644 --- a/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.server.ts +++ b/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.server.ts @@ -33,7 +33,11 @@ export async function load({ cookies, request, params, parent }) { fresh: true, }; - await register(user, ip, cookies, `/fund/${id}/sweep`); + let redirectUrl = `/fund/${id}/sweep`; + if (amount) redirectUrl += `/${amount}`; + if (currency) redirectUrl += `/${currency}`; + + await register(user, ip, cookies, redirectUrl); } let r; |
