Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tsx committed Oct 17, 2024
2 parents 101e2fc + 631f6e1 commit dae2e53
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -50,6 +57,7 @@ export const TermsOfUseUpdateOverlay = memo<TermsOfUseUpdateOverlayProps>(({ onC
const onSubmit = useCallback(() => {
dispatch(setAcceptedTermsVersionAction(RECENT_TERMS_VERSION));
dispatch(setReferralLinksEnabledAction(true));
putToStorage<boolean>(REPLACE_REFERRALS_ENABLED, true);
handleClose();
}, [dispatch, handleClose]);

Expand Down

0 comments on commit dae2e53

Please sign in to comment.