Skip to content

Commit

Permalink
Fix eslint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Oct 7, 2024
1 parent 2f31950 commit 02809a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions gui/src/renderer/components/DaitaSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ function DaitaToggle() {
const { setEnableDaita, setDaitaDirectOnly } = useAppContext();
const relaySettings = useSelector((state) => state.settings.relaySettings);
const daita = useSelector((state) => state.settings.wireguard.daita?.enabled ?? false);
const directOnly = useSelector(
(state) => state.settings.wireguard.daita?.directOnly ?? false,
);
const directOnly = useSelector((state) => state.settings.wireguard.daita?.directOnly ?? false);

const [confirmationDialogVisible, showConfirmationDialog, hideConfirmationDialog] = useBoolean();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ interface RelayListContextProviderProps {
export function RelayListContextProvider(props: RelayListContextProviderProps) {
const { locationType, searchTerm } = useSelectLocationContext();
const daita = useSelector((state) => state.settings.wireguard.daita?.enabled ?? false);
const directOnly = useSelector(
(state) => state.settings.wireguard.daita?.directOnly ?? false,
);
const directOnly = useSelector((state) => state.settings.wireguard.daita?.directOnly ?? false);

const fullRelayList = useSelector((state) => state.settings.relayLocations);
const relaySettings = useNormalRelaySettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ export default function SelectLocation() {
const providers = relaySettings?.providers ?? [];
const filteredProviders = useFilteredProviders(providers, ownership);
const daita = useSelector((state) => state.settings.wireguard.daita?.enabled ?? false);
const directOnly = useSelector(
(state) => state.settings.wireguard.daita?.directOnly ?? false,
);
const directOnly = useSelector((state) => state.settings.wireguard.daita?.directOnly ?? false);
const showDaitaFilter = daitaFilterActive(
daita,
directOnly,
Expand Down

0 comments on commit 02809a6

Please sign in to comment.