-
Notifications
You must be signed in to change notification settings - Fork 229
Suisin/scam message warning for brazil binary #7229
Suisin/scam message warning for brazil binary #7229
Conversation
…sin/scam_message_warning_for_brazil_binary
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…sin/scam_message_warning_for_brazil_binary
…b.com:suisin-deriv/binary-static into suisin/scam_message_warning_for_brazil_binary
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information. |
src/javascript/app/base/page.js
Outdated
| }, 1000); | ||
| RealityCheck.onLoad(); | ||
| Menu.init(); | ||
| const is_at_brazil = State.getResponse('website_status.clients_country') === 'br'; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
|
Deployment failed with the following error: |
| const is_message_read = localStorage.getItem('read_scam_message') || false; | ||
| const is_new_account = localStorage.getItem('new_user_account') || false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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
…b.com:suisin-deriv/binary-static into suisin/scam_message_warning_for_brazil_binary
115a245
|
Kudos, SonarCloud Quality Gate passed!
|








No description provided.