diff --git a/src/screens/SignTxEmbed.tsx b/src/screens/SignTxEmbed.tsx index d4eb4bc..dcd7c07 100644 --- a/src/screens/SignTxEmbed.tsx +++ b/src/screens/SignTxEmbed.tsx @@ -107,12 +107,8 @@ export const SignTxEmbed = () => { } catch (error: unknown) { console.error(`Error handling ${REQUEST_COSMOS_ACCOUNTS_DATA}:`, error); const errorMsg = error instanceof Error ? error.message : String(error); - // Check if source is a Window before sending message - if (source instanceof Window) { - sendMessage(source, COSMOS_ACCOUNTS_RESPONSE, { id, error: `Failed to get accounts: ${errorMsg}` }, origin); - } else { - console.error("Cannot send error message: source is not a Window"); - } + + sendMessage(source, COSMOS_ACCOUNTS_RESPONSE, { id, error: `Failed to get accounts: ${errorMsg}` }, origin); } }, [networksData]);