From d432d2e9e5e363770e3609eb7f01662e63514781 Mon Sep 17 00:00:00 2001 From: Julian Jelfs Date: Tue, 3 Dec 2024 10:46:33 +0000 Subject: [PATCH] capture referral code on internal routing events too (#6950) --- frontend/app/src/components/home/Home.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/app/src/components/home/Home.svelte b/frontend/app/src/components/home/Home.svelte index 8a587f569a..fd5ff2ab9b 100644 --- a/frontend/app/src/components/home/Home.svelte +++ b/frontend/app/src/components/home/Home.svelte @@ -573,6 +573,10 @@ pageReplace(removeQueryStringParam("usergroup")); } + if (client.captureReferralCode()) { + pageReplace(removeQueryStringParam("ref")); + } + if (modal?.kind === "claim_daily_chit") { modal = { kind: "none" }; }