chore(trading): temporarily disable close position (#5350)

This commit is contained in:
m.ray
2023-11-27 10:48:29 +00:00
committed by GitHub
parent d4e801cfc6
commit 4ce386c2bd
2 changed files with 4 additions and 2 deletions
@@ -27,7 +27,8 @@ jest.mock('@vegaprotocol/data-provider', () => ({
}));
describe('PositionsManager', () => {
it('should close position with max uint64', async () => {
// TODO: temporarily disable close position
it.skip('should close position with max uint64', async () => {
render(<PositionsManager partyIds={['partyId']} isReadOnly={false} />, {
wrapper: MockedProvider,
});
+2 -1
View File
@@ -73,7 +73,8 @@ export const PositionsManager = ({
pubKeys={pubKeys}
rowData={data}
onMarketClick={onMarketClick}
onClose={onClose}
// TODO: temporarily disable close position
// onClose={onClose}
isReadOnly={isReadOnly}
multipleKeys={partyIds.length > 1}
overlayNoRowsTemplate={error ? error.message : t('No positions')}