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