-
Notifications
You must be signed in to change notification settings - Fork 299
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
george / wall 1074 / ts type error fixes in cashier
package
#9157
Conversation
… TS-type-error-fixes-in-`cashier`-package-wall-1074
… TS-type-error-fixes-in-`cashier`-package-wall-1074
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…github.com:heorhi-deriv/deriv-app into TS-type-error-fixes-in-`cashier`-package-wall-1074
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-heorhi-deriv-ts-type-error-fixes-in-c-9de59e.binary.sx/ |
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) { |
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.
removed this part. seems like route.component
can't be Redirect
component. pls correct me if i'm wrong
export const isServerError = (error: unknown): error is TServerError => | ||
typeof error === 'object' && error !== null && 'code' in error; |
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.
Nice 🚀
…S-type-error-fixes-in-`cashier`-package-wall-1074
0879408
to
a114d80
Compare
⏳ Generating Lighthouse report... |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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. |
Changes:
Please provide a summary of the change.
Screenshots:
Please provide some screenshots of the change.