fix(trading): hide funding tabs if market is not perp (#5181)
This commit is contained in:
parent
b0169a0d39
commit
8069aa5ee7
@ -82,6 +82,13 @@ export const TradePanels = ({ market, pinnedAsset }: TradePanelsProps) => {
|
|||||||
'bg-vega-clight-500 dark:bg-vega-cdark-500': isActive,
|
'bg-vega-clight-500 dark:bg-vega-cdark-500': isActive,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
if (
|
||||||
|
market?.tradableInstrument.instrument.product.__typename !==
|
||||||
|
'Perpetual' &&
|
||||||
|
(key === 'funding' || key === 'fundingPayments')
|
||||||
|
) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
data-testid={key}
|
data-testid={key}
|
||||||
|
Loading…
Reference in New Issue
Block a user