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

george / wall 1074 / ts type error fixes in cashier package #9157

Conversation

heorhi-deriv
Copy link
Contributor

Changes:

Please provide a summary of the change.

Screenshots:

Please provide some screenshots of the change.

@vercel
Copy link

vercel bot commented Jun 27, 2023

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

Name Status Preview Comments Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2023 6:53am

@github-actions
Copy link
Contributor

github-actions bot commented Jun 27, 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/9157](https://github.com/binary-com/deriv-app/pull/9157)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-heorhi-deriv-ts-type-error-fixes-in-c-9de59e.binary.sx?qa_server=red.binaryws.com&app_id=32682
    - **Original**: https://deriv-app-git-fork-heorhi-deriv-ts-type-error-fixes-in-c-9de59e.binary.sx
- **App ID**: `32682`

@github-actions
Copy link
Contributor

github-actions bot commented Jun 27, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 19
🟧 Accessibility 75
🟢 Best practices 92
🟧 SEO 85
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-heorhi-deriv-ts-type-error-fixes-in-c-9de59e.binary.sx/

Comment on lines -25 to -34
if (route.component === Redirect) {
let to = route.to;

// This if clause has been added just to remove '/index' from url in localhost env.
if (route.path === routes.index) {
const { location } = props;
to = location.pathname.toLowerCase().replace(route.path, '');
}
result = <Redirect to={to} />;
} else if (route.is_authenticated && !route.is_logging_in && !route.is_logged_in) {
Copy link
Contributor Author

@heorhi-deriv heorhi-deriv Jun 27, 2023

Choose a reason for hiding this comment

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

removed this part. seems like route.component can't be Redirect component. pls correct me if i'm wrong

farzin-deriv
farzin-deriv previously approved these changes Jun 28, 2023
Comment on lines +43 to +44
export const isServerError = (error: unknown): error is TServerError =>
typeof error === 'object' && error !== null && 'code' in error;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice 🚀

…S-type-error-fixes-in-`cashier`-package-wall-1074
nijil-deriv
nijil-deriv previously approved these changes Jul 3, 2023
@coveralls
Copy link

coveralls commented Jul 6, 2023

Coverage Status

coverage: 8.888% (+0.004%) from 8.884% when pulling b2c4c2e on heorhi-deriv:TS-type-error-fixes-in-cashier-package-wall-1074 into 951e81e on binary-com:master.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 12, 2023

Generating Lighthouse report...

@sonarcloud
Copy link

sonarcloud bot commented Jul 24, 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 10 Code Smells

No Coverage information No Coverage information
0.6% 0.6% Duplication

@github-actions
Copy link
Contributor

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Sep 23, 2023
@heorhi-deriv heorhi-deriv marked this pull request as draft September 25, 2023 06:47
@github-actions github-actions bot removed the Stale label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants