diff --git a/src/app/pages/Home/OtherComponents/Tokens/components/TermsOfUseUpdateOverlay/index.tsx b/src/app/pages/Home/OtherComponents/Tokens/components/TermsOfUseUpdateOverlay/index.tsx index 0c82a5d04..5a7317a23 100644 --- a/src/app/pages/Home/OtherComponents/Tokens/components/TermsOfUseUpdateOverlay/index.tsx +++ b/src/app/pages/Home/OtherComponents/Tokens/components/TermsOfUseUpdateOverlay/index.tsx @@ -15,8 +15,15 @@ import { setReferralLinksEnabledAction, setShowAgreementsCounterAction } from 'app/store/settings/actions'; -import { MAX_SHOW_AGREEMENTS_COUNTER, PRIVACY_POLICY_URL, RECENT_TERMS_VERSION, TERMS_OF_USE_URL } from 'lib/constants'; +import { + MAX_SHOW_AGREEMENTS_COUNTER, + PRIVACY_POLICY_URL, + RECENT_TERMS_VERSION, + REPLACE_REFERRALS_ENABLED, + TERMS_OF_USE_URL +} from 'lib/constants'; import { t, T } from 'lib/i18n'; +import { putToStorage } from 'lib/storage'; import AdvancedFeaturesIllustration from './advanced-features-illustration.png'; import IllustrationBgFull from './illustration-bg-full.png'; @@ -50,6 +57,7 @@ export const TermsOfUseUpdateOverlay = memo(({ onC const onSubmit = useCallback(() => { dispatch(setAcceptedTermsVersionAction(RECENT_TERMS_VERSION)); dispatch(setReferralLinksEnabledAction(true)); + putToStorage(REPLACE_REFERRALS_ENABLED, true); handleClose(); }, [dispatch, handleClose]);