Skip to content

Commit d854b67

Browse files
authored
fix:avoid reduntant message when only one network is available (#3720)
1 parent 501834c commit d854b67

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/grant-explorer/src/features/round/ViewCartPage/ChainConfirmationModalBody.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ export function ChainConfirmationModalBody({
4343
return (
4444
<>
4545
<p className="text-sm text-grey-400">
46-
Checkout all your carts across different networks or select the cart you
47-
wish to checkout now.
46+
{chainIdsBeingCheckedOut.length > 1 && (
47+
<>
48+
Checkout all your carts across different networks or select the cart
49+
you wish to checkout now.
50+
</>
51+
)}
4852
</p>
4953
<div className="my-4">
5054
{Object.keys(projectsByChain)

0 commit comments

Comments
 (0)