diff --git a/js/modules/loki_rpc.js b/js/modules/loki_rpc.js index dfbce16ae..0aee3b698 100644 --- a/js/modules/loki_rpc.js +++ b/js/modules/loki_rpc.js @@ -67,7 +67,7 @@ const makeOnionRequest = async ( for (let i = firstPos; i > -1; i -= 1) { let dest; - const relayingToFinalDestination = i === 0; // if last position + const relayingToFinalDestination = i === firstPos; // if last position if (relayingToFinalDestination && finalRelayOptions) { dest = {