From ca57d49aa7bdc17af272e4e92613eeba12f6f419 Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Sat, 18 Jan 2025 19:46:39 -0500
Subject: Prevent simultaneous actions from causing rate limit

---
 extension/src/components/SettingsEditor.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'extension/src/components/SettingsEditor.tsx')

diff --git a/extension/src/components/SettingsEditor.tsx b/extension/src/components/SettingsEditor.tsx
index cdb2894..c05b483 100644
--- a/extension/src/components/SettingsEditor.tsx
+++ b/extension/src/components/SettingsEditor.tsx
@@ -61,14 +61,14 @@ function SettingsEditor(props: {isOpen: [boolean,  React.Dispatch<React.SetState
                             <h3>Background Image URL</h3>
                             <input type={"url"}
                                    value={settings.backgroundImage}
-                                   onChange={e => setSettings({...settings, backgroundImage: e.target.value})}/>
+                                   onBlur={e => setSettings({...settings, backgroundImage: e.target.value})}/>
                         </>)
                     case "color":
                         return (<>
                             <h3>Background Color</h3>
                             <input type={"color"}
                                    value={settings.backgroundColor}
-                                   onChange={e => setSettings({...settings, backgroundColor: e.target.value})}/>
+                                   onBlur={e => setSettings({...settings, backgroundColor: e.target.value})}/>
                         </>)
                 }
             })()}
-- 
cgit v1.2.3

