Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cannot read properties of null issue fixed #9823

Merged

Conversation

nada-deriv
Copy link
Contributor

Changes:

fixed issue with cannot read properties of null

Screenshots:

Please provide some screenshots of the change.

@vercel
Copy link

vercel bot commented Aug 25, 2023

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

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Oct 3, 2023 6:15am

@github-actions
Copy link
Contributor

github-actions bot commented Aug 25, 2023

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

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/9823](https://github.com/binary-com/deriv-app/pull/9823)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-nada-deriv-nada-p2ps-1469trackjs-error.binary.sx?qa_server=red.binaryws.com&app_id=32507
    - **Original**: https://deriv-app-git-fork-nada-deriv-nada-p2ps-1469trackjs-error.binary.sx
- **App ID**: `32507`

@github-actions
Copy link
Contributor

github-actions bot commented Aug 25, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 20
🟧 Accessibility 86
🟧 Best practices 83
🟢 SEO 92
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-nada-deriv-nada-p2ps-1469trackjs-error.binary.sx/

@coveralls
Copy link

coveralls commented Aug 25, 2023

Coverage Status

coverage: 24.263%. remained the same when pulling c1ad581 on nada-deriv:nada/P2PS-1469/trackjs-error into 8a10198 on binary-com:master.

Comment on lines 142 to 148
if (response) {
if (!response.error) {
const { get_account_status } = response;
const { status } = get_account_status?.authentication?.identity ?? {};
this.root_store.general_store.setPoiStatus(status);
} else {
this.setErrorMessage(response?.error);
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to check for response here since we are already doing it on line 142

farrah-deriv
farrah-deriv previously approved these changes Aug 28, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2023

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
54.1% 54.1% Duplication

@gitguardian
Copy link

gitguardian bot commented Oct 3, 2023

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id Secret Commit Filename
- Generic High Entropy Secret 116a6ef nx.json View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@sonarcloud
Copy link

sonarcloud bot commented Oct 3, 2023

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
12.7% 12.7% Duplication

@sandeep-deriv sandeep-deriv merged commit 629db74 into binary-com:master Oct 4, 2023
6 of 7 checks passed
vinu-deriv pushed a commit that referenced this pull request Oct 10, 2023
* fix: cannot read properties of null issue fixed

* fix: review fix

* fix: circle ci fail issue fixed

* fix: circle ci fail issue fixed

* fix: remove unwanted file change
vinu-deriv pushed a commit that referenced this pull request Oct 10, 2023
* fix: cannot read properties of null issue fixed

* fix: review fix

* fix: circle ci fail issue fixed

* fix: circle ci fail issue fixed

* fix: remove unwanted file change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants