Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-deriv committed Sep 12, 2024
1 parent b577942 commit b0b143d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import './EnterPassword.scss';
type TProps = {
isForgotPasswordLoading?: boolean;
isLoading?: boolean;
isTncChecked: boolean;
isTncChecked?: boolean;
isVirtual?: boolean;
marketType: TMarketTypes.CreateOtherCFDAccount;
modalTitle?: string;
onPasswordChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
onPrimaryClick?: () => void;
onSecondaryClick?: () => void;
onTncChange: () => void;
onTncChange?: () => void;
password: string;
passwordError?: boolean;
platform: TPlatforms.All;
Expand All @@ -30,7 +30,7 @@ type TProps = {
const EnterPassword: React.FC<TProps> = ({
isForgotPasswordLoading,
isLoading,
isTncChecked,
isTncChecked = false,
isVirtual,
marketType,
modalTitle,
Expand Down Expand Up @@ -95,7 +95,7 @@ const EnterPassword: React.FC<TProps> = ({
{product === PRODUCT.ZEROSPREAD && !isVirtual && (
<CFDPasswordModalTnc
checked={isTncChecked}
onChange={onTncChange}
onChange={() => onTncChange?.()}
platform={platform}
product={product}
/>
Expand Down

0 comments on commit b0b143d

Please sign in to comment.