Skip to content

Commit

Permalink
Fix a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Aug 8, 2024
1 parent dd1013b commit 1c8b823
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/stores-internal/src/skip/ibc-pfm-transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ export class ObservableQueryIbcPfmTransfer {
continue;
}

const reversedPaths = destinationCurrency.paths.reverse();
const reversedPaths = destinationCurrency.paths
.slice()
.reverse();
for (let i = 0; i < reversedPaths.length; i++) {
const reversedPath = reversedPaths[i];
channels.push({
Expand Down
2 changes: 1 addition & 1 deletion apps/stores-internal/src/skip/ibc-swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class ObservableQueryIbcSwap extends HasMapStore<ObservableQueryIBCSwapIn
return false;
}

const reversedPaths = destinationCurrency.paths.reverse();
const reversedPaths = destinationCurrency.paths.slice().reverse();
for (let i = 0; i < reversedPaths.length; i++) {
const reversedPath = reversedPaths[i];
channels.push({
Expand Down

0 comments on commit 1c8b823

Please sign in to comment.