Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Jul 25, 2024
1 parent 2614d85 commit 05af586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/BlockExplorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { chooseUrl, config } from "../config";
import { useGlobalContext } from "../context/Global";

const blockExplorerLink = (asset: string, isTxId: boolean, val: string) => {
const basePath = chooseUrl(config.assets[asset].blockExplorerUrl);
const basePath = chooseUrl(config.assets[asset]?.blockExplorerUrl);
return `${basePath}/${isTxId ? "tx" : "address"}/${val}`;
};

Expand Down
2 changes: 1 addition & 1 deletion src/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getLockupAddress = (swap: SubmarineSwap | ChainSwap) => {
if (swap.type === SwapType.Submarine) {
return (swap as SubmarineSwap).address;
}
return (swap as ChainSwap).lockupDetails.lockupAddress;
return (swap as ChainSwap).lockupDetails?.lockupAddress;
};

export const parseBlindingKey = (swap: SomeSwap, isRefund: boolean) => {
Expand Down

0 comments on commit 05af586

Please sign in to comment.