Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanhollman committed Aug 10, 2024
1 parent 68695e6 commit 58ae61e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/ConfigView/ConfigView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ const UserItem = (props: { userName: string }) => {
const { config, persistConfig } = useConfiguration();

const removeUser = (userName: string) => {
config.removeUserName(userName) && persistConfig(config);
if (config.removeUserName(userName)) {
persistConfig(config);
}
};

return (
Expand Down Expand Up @@ -113,7 +115,9 @@ const NewUserItem = () => {
const [newUserName, setUserName] = useState("");

const addUser = () => {
config.addUserName(newUserName) && persistConfig(config);
if (config.addUserName(newUserName)) {
persistConfig(config);
}
setUserName("");
};

Expand Down

0 comments on commit 58ae61e

Please sign in to comment.