Skip to content

Commit

Permalink
Update OptionsDropdown.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunJoshi10 authored Jun 16, 2024
1 parent 67df89f commit ad55ae9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/OptionsDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import React from 'react';
import { useAppState } from '../state/store';

const OptionsDropdown = () => {
const { openAIKey, updateSettings } = useAppState((state) => ({
openAIKey: state.settings.openAIKey,
const { zynapseKey, updateSettings } = useAppState((state) => ({
zynapseKey: state.settings.zynapseKey,
updateSettings: state.settings.actions.update,
}));

if (!openAIKey) return null;
if (!zynapseKey) return null;

return (
<Menu>
Expand All @@ -29,7 +29,7 @@ const OptionsDropdown = () => {
<MenuItem
icon={<RepeatIcon />}
onClick={() => {
updateSettings({ openAIKey: '' });
updateSettings({ zynapseKey: '' });
}}
>
Reset API Key
Expand Down

0 comments on commit ad55ae9

Please sign in to comment.