Skip to content

Commit

Permalink
Add back wrongly removed logic
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Mar 4, 2024
1 parent ed00583 commit d9c5848
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/referral/ReferralUrlChanger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit d9c5848

Please sign in to comment.