diff --git a/packages/wallet/frontend/src/pages/grant-interactions/index.tsx b/packages/wallet/frontend/src/pages/grant-interactions/index.tsx index 8daf6c1d4..999d3fe5d 100644 --- a/packages/wallet/frontend/src/pages/grant-interactions/index.tsx +++ b/packages/wallet/frontend/src/pages/grant-interactions/index.tsx @@ -22,7 +22,8 @@ const GrantInteractionPage = ({ grant, interactionId, nonce, - clientName + clientName, + grantWalletAddress }: GrantInteractionPageProps) => { const [openDialog, closeDialog] = useDialog() const router = useRouter() @@ -66,30 +67,41 @@ const GrantInteractionPage = ({ width={500} height={150} /> -
- {grant.access.length === 1 ? ( + {grantWalletAddress.length > 0 ? ( +
- {client} is requesting access to make payments to an amount of{' '} - {grant.access[0]?.limits?.debitAmount?.formattedAmount}. + {grant.client} is + requesting you to confirm ownership of the following wallet + address(es):  + {grantWalletAddress.join(', ')}
- ) : ( +
+ ) : ( +
+ {grant.access.length === 1 ? ( +
+ {client} is requesting access to make payments to an amount of{' '} + {grant.access[0]?.limits?.debitAmount?.formattedAmount}. +
+ ) : ( +
+ {client} is requesting access to make payments on the following + amounts:{' '} + {grant.access + .map( + (accessItem) => + accessItem.limits?.debitAmount?.formattedAmount + ) + .join(', ')} + . +
+ )}
- {client} is requesting access to make payments on the following - amounts:{' '} - {grant.access - .map( - (accessItem) => - accessItem.limits?.debitAmount?.formattedAmount - ) - .join(', ')} - . + Wallet Address client:{' '} + {grant.client}
- )} -
- Wallet Address client:{' '} - {grant.client}
-
+ )}