Skip to content

Commit

Permalink
Changed some references to the selected option to just its value
Browse files Browse the repository at this point in the history
  • Loading branch information
MonokumaBear authored Mar 28, 2024
1 parent 4da5931 commit 6c33e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pages/Preferences/Preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ const Preferences = () => {
const [friendsAPISelectedOption, setFriendsAPISelectedOption] = useState(
friendsApiUsageOptions.find((o) => {
return o.value === settings.internal?.friendsApiUsage;
}),
}.value,
);

const updateSelectElement = () => {
setFriendsAPISelectedOption(
friendsApiUsageOptions.find((o) => {
return o.value === settings.internal?.friendsApiUsage;
}),
}).value,
);
};

Expand Down

0 comments on commit 6c33e39

Please sign in to comment.