Skip to content

Commit

Permalink
fix: date formatting in launcher trade execution overlay (#1811)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyadaptive committed Feb 26, 2021
1 parent 1d022a7 commit 24434a0
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,3 +1,4 @@
import { DateTime } from 'luxon'
import numeral from 'numeral'
import React, { FC, useEffect, useMemo, useState } from 'react'
import { Subscription, fromEvent } from 'rxjs'
Expand Down Expand Up @@ -127,7 +128,7 @@ export const TradeExecutionOverlay: FC<TradeExecutionProps> = ({
const directionString = direction.toLowerCase() === 'buy' ? 'bought' : 'sold'
const tradeAcceptedMessage = `You ${directionString} ${symbol} for ${dealtCurrency}${numeral(
notional
).format()} @ ${spotRate} settling ${tradeDate.toLocaleDateString()}`
).format()} @ ${spotRate} settling ${DateTime.fromJSDate(tradeDate).toFormat('dd-LLL-yyyy / HH:mm:ss')}`

return (
<>
Expand Down

0 comments on commit 24434a0

Please sign in to comment.