diff --git a/extension/src/connections/ConnectionsDrawer/Edit/index.tsx b/extension/src/connections/ConnectionsDrawer/Edit/index.tsx index 1261f586..b0be918c 100644 --- a/extension/src/connections/ConnectionsDrawer/Edit/index.tsx +++ b/extension/src/connections/ConnectionsDrawer/Edit/index.tsx @@ -86,7 +86,7 @@ const EditConnection: React.FC = ({ connectionId, onLaunched }) => { } const confirmation = await getConfirmation( - 'Switching the piloted Safe will empty your current transaction bundle.' + 'Switching the Piloted Safe will empty your current transaction bundle.' ) if (!confirmation) { @@ -217,13 +217,20 @@ const EditConnection: React.FC = ({ connectionId, onLaunched }) => { - updateConnection({ - avatarAddress: address, - moduleAddress: '', - moduleType: undefined, - }) - } + onChange={async (address) => { + const keepTransactionBundle = + address.toLowerCase() === + connection.avatarAddress.toLowerCase() + const confirmed = + keepTransactionBundle || (await confirmClearTransactions()) + if (confirmed) { + updateConnection({ + avatarAddress: address, + moduleAddress: '', + moduleType: undefined, + }) + } + }} /> diff --git a/extension/src/connections/ConnectionsDrawer/List/index.tsx b/extension/src/connections/ConnectionsDrawer/List/index.tsx index 2cd76d33..e8a34c27 100644 --- a/extension/src/connections/ConnectionsDrawer/List/index.tsx +++ b/extension/src/connections/ConnectionsDrawer/List/index.tsx @@ -48,7 +48,7 @@ const ConnectionItem: React.FC = ({ } const confirmation = await getConfirmation( - 'Switching the piloted Safe will empty your current transaction bundle.' + 'Switching the Piloted Safe will empty your current transaction bundle.' ) if (!confirmation) {