Skip to content

Commit

Permalink
🩹Fix disabled loading before path is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Sep 4, 2024
1 parent af19e05 commit 83eb342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Swap/SwapPathComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function SwapPathComponent({ trade }: { trade: InterfaceTrade | undefined }) {
tempDistributionArray.push({ path: fulfilledValues, parts: distribution.parts, protocol: distribution.protocol_id });
setDistributionArray(tempDistributionArray);
setTotalParts(tempDistributionArray.reduce((acc, curr) => acc + curr.parts, 0));
setPathTokensIsLoading(false);
}
setPathTokensIsLoading(false);
}
})();
}, [trade?.path, isLoading, sorobanContext]);
Expand Down

0 comments on commit 83eb342

Please sign in to comment.