mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
fix lint
This commit is contained in:
parent
aa6daae161
commit
325468ccd3
@ -68,8 +68,8 @@ const DepthChart: React.FC<DepthChartProps> = ({
|
||||
useEffect(() => {
|
||||
if (Object.values(federation.book).length > 0) {
|
||||
const enriched = Object.values(federation.book).map((order) => {
|
||||
if (order && order.coordinatorShortAlias != null && order.currency) {
|
||||
const limits = federation.getCoordinator(order.coordinatorShortAlias).limits;
|
||||
if (order?.coordinatorShortAlias && order?.currency) {
|
||||
const limits = federation.getCoordinator(order.coordinatorShortAlias)?.limits;
|
||||
|
||||
const originalPrice =
|
||||
(limits[order.currency]?.price ?? 0) * (1 + parseFloat(order.premium) / 100);
|
||||
|
Loading…
Reference in New Issue
Block a user