diff --git a/ui/src/app/components/ArcadeDialog.tsx b/ui/src/app/components/ArcadeDialog.tsx index 0f014f22d..08739f148 100644 --- a/ui/src/app/components/ArcadeDialog.tsx +++ b/ui/src/app/components/ArcadeDialog.tsx @@ -31,6 +31,8 @@ export const ArcadeDialog = () => { ); }, [available]); + console.log(arcadeConnectors()); + if (!connectors) return
; return ( @@ -69,6 +71,7 @@ export const ArcadeDialog = () => { onClick={connect} address={address!} masterAccount={MasterAccount!} + arcadeConnectors={arcadeConnectors()} /> ); })} @@ -91,6 +94,7 @@ interface ArcadeAccountCardProps { onClick: (conn: Connector) => void; address: string; masterAccount: AccountInterface; + arcadeConnectors: any[]; } export const ArcadeAccountCard = ({ @@ -98,6 +102,7 @@ export const ArcadeAccountCard = ({ onClick, address, masterAccount, + arcadeConnectors, }: ArcadeAccountCardProps) => { const { data } = useBalance({ address: account.name, @@ -142,6 +147,12 @@ export const ArcadeAccountCard = ({ } }; + console.log( + arcadeConnectors.some( + (conn) => conn.options.options.id == masterAccount.address + ) + ); + return (
@@ -153,13 +164,23 @@ export const ArcadeAccountCard = ({ {balance}ETH{" "}
-
+
+ {!arcadeConnectors.some( + (conn) => conn.options.options.id == masterAccount.address + ) && ( + + )}
{isCopied && Copied!}