Skip to content

Commit 3a6280e

Browse files
committed
Fix erroneous logic after removing local storage code
1 parent a4af5bd commit 3a6280e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/MainScreen.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ const defaultText = "Describe this image."
1010
export default function MainScreen() {
1111
const tabs = useChatGPTTabs()
1212
const imageURL = useActiveTabImageURL()
13-
// Persist the text value so that accidentally closing the extension doesn't
14-
// lose whatever was written.
15-
const [text, setText] = useState("text")
13+
const [text, setText] = useState("")
1614
const [selectedTabId, setSelectedTabId] = useState(tabs[0]?.id ?? -1)
1715
const [isSending, setIsSending] = useState(false)
1816

0 commit comments

Comments
 (0)