Skip to content

Commit

Permalink
feat: sync staging → main
Browse files Browse the repository at this point in the history
Signed-off-by: Griko Nibras <[email protected]>
  • Loading branch information
grikomsn committed Jan 30, 2024
2 parents fd33948 + 21ac9b9 commit 6cfecae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/RouteDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ function SwapStep({ action, actions, id, statusData }: SwapStepProps) {
/>
<span className="font-semibold text-black">{assetOut.recommendedSymbol}</span>
</Gap.Child>
<span>on</span>
<Gap.Child>
<span>on</span>
<img
className="inline-block h-4 w-4"
src={venue.imageURL}
Expand Down
11 changes: 8 additions & 3 deletions src/context/assets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,18 @@ export function AssetsProvider({ children }: { children: ReactNode }) {

if (!feeAsset) {
const chain = (chains ?? []).find((chain) => chain.chainID === chainID);
chain?.feeAssets && ([feeAsset] = chain.feeAssets.sort(sortFeeAssets));
if (!chain) return;
[feeAsset] = chain.feeAssets.sort(sortFeeAssets);
}
if (!feeAsset) {
return;
}

const asset = feeAsset && getAsset(feeAsset.denom, chainID);
const asset = getAsset(feeAsset.denom, chainID);
if (!asset) return;

return (feeAssetCache[chainID] = asset), asset;
feeAssetCache[chainID] = asset;
return asset;
},
[chains, getAsset, skipClient],
);
Expand Down

0 comments on commit 6cfecae

Please sign in to comment.