Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Conversation

@suisin-deriv
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Sep 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
binary-static ✅ Ready (Inspect) Visit Preview Sep 20, 2022 at 6:25AM (UTC)

@github-actions
Copy link

github-actions bot commented Sep 15, 2022

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/binary-static/pull/7229](https://github.com/binary-com/binary-static/pull/7229)
- **URLs**:
    - **w/ App ID + Server**: https://binary-static-git-fork-suisin-deriv-suisin-scammessagewa-742c19.binary.sx/en/logged_inws.html?qa_server=frontend.binaryws.com&app_id=29726
    - **Original**: https://binary-static-git-fork-suisin-deriv-suisin-scammessagewa-742c19.binary.sx/en/logged_inws.html
- **App ID**: `29726`

}, 1000);
RealityCheck.onLoad();
Menu.init();
const is_at_brazil = State.getResponse('website_status.clients_country') === 'br';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be like this:
const is_at_brazil = (Client.get('residence') === 'br' ||State.getResponse('website_status.clients_country') === 'br');
also better to name it is_br_client

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted client which they access their account in brazil.

@vercel
Copy link

vercel bot commented Sep 19, 2022

Deployment failed with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

Comment on lines 19 to 20
const is_message_read = localStorage.getItem('read_scam_message') || false;
const is_new_account = localStorage.getItem('new_user_account') || false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const is_message_read = localStorage.getItem('read_scam_message') || false;
const is_new_account = localStorage.getItem('new_user_account') || false;
const is_message_read = !!localStorage.getItem('read_scam_message');
const is_new_account = !!localStorage.getItem('new_user_account');

Doing !! will coerce null values to false

mahdiyeh-deriv
mahdiyeh-deriv previously approved these changes Sep 19, 2022
matin-deriv
matin-deriv previously approved these changes Sep 19, 2022
yashim-deriv
yashim-deriv previously approved these changes Sep 20, 2022
…b.com:suisin-deriv/binary-static into suisin/scam_message_warning_for_brazil_binary
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.6% 0.6% Duplication

@matin-deriv matin-deriv merged commit 08ad540 into binary-com:master Sep 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants