Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhi-deriv committed Dec 10, 2024
1 parent 4888f29 commit f3a6c4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/cashier/src/components/error-state/error-state.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';

import { EmptyState } from '@deriv/components';
import { localize } from '@deriv/translations';
import { EmptyState } from '@deriv/components';

type TProps = {
error: unknown;
Expand All @@ -10,7 +9,7 @@ type TProps = {
const ErrorState: React.FC<TProps> = ({ error }) => {
let message = localize('Something went wrong. Please refresh the page and try again.');

if (error && typeof error === 'object' && 'message' in error && typeof error.message === 'boolean') {
if (error && typeof error === 'object' && 'message' in error && typeof error.message === 'string') {
message = error.message;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const TransferFormDropdown: React.FC<TProps> = ({ fieldName, mobileAccountsListR
const { isDesktop } = useDevice();
const modal = useModal();

const isFromAccountDropdown = fieldName === 'toAccount';
const isFromAccountDropdown = fieldName === 'fromAccount';

const fromAccountList = useMemo(() => {
if (!activeWallet) return { tradingAccounts: [], walletAccounts: [] };
Expand Down

0 comments on commit f3a6c4a

Please sign in to comment.