-
Notifications
You must be signed in to change notification settings - Fork 8
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
Shayan/feq 2336/redirect guest users to login page #111
Shayan/feq 2336/redirect guest users to login page #111
Conversation
as: 'button', | ||
href: 'https://app.deriv.com/appstore/traders-hub', | ||
as: 'a', | ||
href: 'https://app.deriv.com/appstore/reports', | ||
icon: <ReportsLogo iconSize='xs' />, | ||
label: 'Reports', | ||
}, | ||
{ | ||
as: 'button', | ||
href: 'https://app.deriv.com/appstore/traders-hub', | ||
as: 'a', | ||
href: 'https://app.deriv.com/appstore/cashier', | ||
icon: <CashierLogo iconSize='xs' />, | ||
label: 'Cashier', | ||
}, |
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.
this is not in this PR's scope but I just fixed it here
…6/redirect-guest-users-to-login-page
Preview Link: https://shayan-feq-2336-redi.p2p-standalone.pages.dev
|
@@ -12,7 +12,7 @@ const useIsAdvertiser = (): boolean => { | |||
const [isAdvertiser, setIsAdvertiser] = useState(!error && !isEmptyObject(data)); | |||
|
|||
useEffect(() => { | |||
if (error && error?.error.code === ERROR_CODES.ADVERTISER_NOT_FOUND) { | |||
if (error && error?.code === ERROR_CODES.ADVERTISER_NOT_FOUND) { |
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.
this is due to error message structure change in api-hooks library
@@ -80,7 +80,7 @@ const OrderDetails = () => { | |||
if (isLoading || (!orderInfo && !error)) return <Loader isFullScreen />; | |||
|
|||
// TODO: replace with proper error screen once design is ready | |||
if (error) return <Text>{error?.error?.message}</Text>; | |||
if (error) return <Text>{error?.message}</Text>; |
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.
this is due to error message structure change in api-hooks library
@@ -225,7 +225,7 @@ describe('<OrderDetails />', () => { | |||
(mockUseGet as jest.Mock).mockReturnValue({ | |||
...mockUseGet(), | |||
data: {}, | |||
error: { error: { message: 'error message' } }, | |||
error: { code: 'code', message: 'error message' }, |
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.
this is due to error message structure change in api-hooks library
|
||
type TContextValue = { | ||
error: TSocketError<'p2p_advertiser_info'> | undefined; | ||
error: { code: string; message: string } | undefined; |
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.
this is due to error message structure change in api-hooks library
Pull Request Test Coverage Report for Build 9461576364Details
💛 - Coveralls |
No description provided.