Skip to content

Commit 094e7e8

Browse files
committed
Fix inbound display
1 parent 218ce94 commit 094e7e8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apps/frontend/src/components/bookkeeper/SatsFlow/SatsFlowGraph/SatsFlowGraph.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ function SatsFlowGraph({ satsFlowData, width }: { satsFlowData: SatsFlow, width:
9090
.attr("x", 0)
9191
.attr("y", (d: TagGroup) => {
9292
let barHeight = Math.abs(yScale(d.netInflowSat) - yScale(0));
93-
console.log("barHeight = " + barHeight + " " + d.netInflowSat);
9493
//min barHeight should be 1.
9594
if (d.netInflowSat < 0) {
9695
//For negative values start at yOffsetNegative and move down

apps/frontend/src/hooks/use-http.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const useHttp = () => {
215215

216216
let worstTrafficRoute = "";
217217
if (lowestForwardIndex != null) {
218-
worstTrafficRoute = `${volumeData.forwards[lowestForwardIndex].outboundChannelSCID} -> ${volumeData.forwards[lowestForwardIndex].outboundChannelSCID}`;
218+
worstTrafficRoute = `${volumeData.forwards[lowestForwardIndex].inboundChannelSCID} -> ${volumeData.forwards[lowestForwardIndex].outboundChannelSCID}`;
219219
}
220220

221221
return {

0 commit comments

Comments
 (0)