Skip to content

Commit

Permalink
[hotfix] TW-1502: Apply terms -> Enable referrals (#1195)
Browse files Browse the repository at this point in the history
* [hotfix] TW-1502: Apply terms -> Enable referrals

* Bump version to 1.26.1
  • Loading branch information
alex-tsx authored Sep 9, 2024
1 parent 766eb0d commit 631f6e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "temple-wallet",
"version": "1.26.0",
"version": "1.26.1",
"private": true,
"scripts": {
"start-run": "cross-env TS_NODE_PROJECT=\"webpack/tsconfig.json\" webpack --watch --stats errors-warnings",
Expand Down
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 631f6e1

Please sign in to comment.