Skip to content

Commit

Permalink
refactor: remove as unknown as type redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
shontzu-deriv committed Apr 25, 2024
1 parent 30b4cc5 commit 09aaa59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cfd/components/MT5PlatformsList/MT5PlatformsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const MT5PlatformsList = () => {

return (
<AvailableMT5AccountsList
account={MT5Account as unknown as THooks.MT5AccountsList}
account={MT5Account as THooks.MT5AccountsList}
key={`available-mt5-list-${MT5Account.market_type}-${MT5Account.leverage}`}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const CompareAccountsPlatformLabel = ({ platform }: TCompareAccountsPlatformLabe
className={twMerge(
CompareAccountsPlatformLabelClass({
background: platformType,
} as unknown as TCompareAccountsPlatformLabelClassProps)
} as TCompareAccountsPlatformLabelClassProps)
)}
>
<Text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ export const JurisdictionCard = ({
row?.titleIndicators?.displayText && (
<div
className={JurisdictionCardTagClass({
displayTextSkinColor: row?.titleIndicators
?.displayTextSkinColor as unknown as TDisplayTextSkinColor,
displayTextSkinColor: row?.titleIndicators?.displayTextSkinColor as TDisplayTextSkinColor,
})}
>
<Text className='leading-2 text-system-light-primary-background' size='xs' weight='bold'>
Expand Down

0 comments on commit 09aaa59

Please sign in to comment.