diff --git a/apps/shinkai-visor/src/components/connect-method-qr-code/connec-method-qr-code.tsx b/apps/shinkai-visor/src/components/connect-method-qr-code/connec-method-qr-code.tsx
index 39edd90fa..59778e022 100644
--- a/apps/shinkai-visor/src/components/connect-method-qr-code/connec-method-qr-code.tsx
+++ b/apps/shinkai-visor/src/components/connect-method-qr-code/connec-method-qr-code.tsx
@@ -204,6 +204,7 @@ export const ConnectMethodQrCode = () => {
className="absolute top-1 right-1 h-6 w-6"
onClick={() => removeQRFile()}
size="icon"
+ type="button"
>
diff --git a/apps/shinkai-visor/src/components/connect-method-restore-connection/connect-method-restore-connection.tsx b/apps/shinkai-visor/src/components/connect-method-restore-connection/connect-method-restore-connection.tsx
index 4831153c9..007b68206 100644
--- a/apps/shinkai-visor/src/components/connect-method-restore-connection/connect-method-restore-connection.tsx
+++ b/apps/shinkai-visor/src/components/connect-method-restore-connection/connect-method-restore-connection.tsx
@@ -126,6 +126,7 @@ export const ConnectMethodRestoreConnection = () => {
className="h-6 w-6"
onClick={() => removeConnectionFile()}
size="icon"
+ type="button"
>