From d9c58488d8914ab5e76627fab87423d12a75fcda Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Mon, 4 Mar 2024 23:17:28 +0700 Subject: [PATCH] Add back wrongly removed logic --- src/components/referral/ReferralUrlChanger.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/referral/ReferralUrlChanger.tsx b/src/components/referral/ReferralUrlChanger.tsx index f02c16e74..568ba5506 100644 --- a/src/components/referral/ReferralUrlChanger.tsx +++ b/src/components/referral/ReferralUrlChanger.tsx @@ -17,6 +17,7 @@ export function ReferralUrlChanger() { useEffect(() => { if (!referralId) return const current = getCurrentSearchParams() + current.set('ref', referralId) const newPath = `${getCurrentUrlWithoutQuery()}?${current.toString()}` router.replace(newPath, undefined, { shallow: true })