Compare commits

...
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ NX_STOP_ORDERS=true
NX_ICEBERG_ORDERS=true
NX_METAMASK_SNAPS=true
NX_REFERRALS=true
NX_DISABLE_CLOSE_POSITION=true
# NX_DISABLE_CLOSE_POSITION=false
NX_TENDERMINT_URL=https://be.vega.community
NX_TENDERMINT_WEBSOCKET_URL=wss://be.vega.community/websocket
@@ -135,7 +135,7 @@ describe('MarketInfoPanels', () => {
render(<DataSourceProof dataSourceSpecId={''} {...props} />);
expect(screen.getByText('Internal conditions')).toBeInTheDocument();
const dateFromUnixTimestamp = condition.value
? getDateTimeFormat().format(new Date(parseInt(condition.value)))
? getDateTimeFormat().format(new Date(parseInt(condition.value) * 1000))
: '-';
expect(
screen.getByText(
@@ -1262,7 +1262,9 @@ export const DataSourceProof = ({
{data.sourceType.sourceType?.conditions?.map((condition, i) => {
if (!condition) return null;
const dateFromUnixTimestamp = condition.value
? getDateTimeFormat().format(new Date(parseInt(condition.value)))
? getDateTimeFormat().format(
new Date(parseInt(condition.value) * 1000)
)
: '-';
return (
<p key={i}>