Skip to content

Commit 8e71009

Browse files
copy: update legal text (#119)
* copy: update legal text * fix: show legal text on first run of the application --------- Co-authored-by: Branko Bosnic <[email protected]>
1 parent a0c1c76 commit 8e71009

File tree

4 files changed

+161
-409
lines changed

4 files changed

+161
-409
lines changed

packages/shared/lib/app.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,14 @@ export const logout = (_clearActiveProfile: boolean = false, _lockStronghold: bo
143143
/**
144144
* The privacy policy packaged with the current version of IOTA Legacy Migration Tool
145145
*/
146-
export const PRIVACY_POLICY_VERSION = 2
146+
export const PRIVACY_POLICY_VERSION = 1
147147

148148
/**
149149
* The Terms of Service packaged with the current version of IOTA Legacy Migration Tool
150150
*/
151151
export const TOS_VERSION = 2
152152

153-
export const needsToAcceptLatestPrivacyPolicy = (): boolean => get(lastAcceptedPrivacyPolicy) < PRIVACY_POLICY_VERSION
153+
// Note: we dont have privacy policy
154+
export const needsToAcceptLatestPrivacyPolicy = (): boolean => false
155+
154156
export const needsToAcceptLatestTos = (): boolean => get(lastAcceptedTos) < TOS_VERSION

packages/shared/lib/core/router/app-router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class AppRouter extends Router<AppRoute> {
4444
switch (currentRoute) {
4545
case AppRoute.Welcome:
4646
{
47-
const showLegalPage = needsToAcceptLatestPrivacyPolicy() || needsToAcceptLatestTos()
47+
const showLegalPage = needsToAcceptLatestTos()
4848
if (showLegalPage) {
4949
nextRoute = AppRoute.Legal
5050
} else {

0 commit comments

Comments
 (0)