Update useReferrer.tsx

This commit is contained in:
vincanger 2023-11-13 19:28:27 +01:00
parent 314a8b8a63
commit 5a96ae8fd7

View File

@ -5,7 +5,7 @@ import useLocalStorage from './useLocalStorage';
const REFERRER_KEY = 'ref';
export const UNKOWN_REFERRER = 'unknown';
export default function useReferrer() {
export function useReferrer() {
const history = useHistory();
const urlParams = new URLSearchParams(window.location.search);
const refValue = urlParams.get(REFERRER_KEY);