Skip to content

Commit

Permalink
Fix erroneous logic after removing local storage code
Browse files Browse the repository at this point in the history
  • Loading branch information
blixt committed May 27, 2024
1 parent a4af5bd commit 3a6280e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/MainScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ const defaultText = "Describe this image."
export default function MainScreen() {
const tabs = useChatGPTTabs()
const imageURL = useActiveTabImageURL()
// Persist the text value so that accidentally closing the extension doesn't
// lose whatever was written.
const [text, setText] = useState("text")
const [text, setText] = useState("")
const [selectedTabId, setSelectedTabId] = useState(tabs[0]?.id ?? -1)
const [isSending, setIsSending] = useState(false)

Expand Down

0 comments on commit 3a6280e

Please sign in to comment.