Skip to content

Commit 0513fb9

Browse files
Fix additional formatting issues in ProxyContext.tsx
- Fix whitespace issues - Break long line into multiple lines - Add parentheses around arrow function parameter Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parent b6fc891 commit 0513fb9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

site/src/contexts/ProxyContext.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,16 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
9999
queryFn: () => API.getProxySettings(),
100100
retry: false, // Don't retry if user doesn't have proxy settings
101101
});
102-
102+
103103
// Mutation for updating proxy settings
104104
const updateProxyMutation = useMutation({
105-
mutationFn: (proxyId: string) => API.updateProxySettings({ preferred_proxy: proxyId }),
105+
mutationFn: (proxyId: string) =>
106+
API.updateProxySettings({ preferred_proxy: proxyId }),
106107
onSuccess: () => {
107108
queryClient.invalidateQueries(["userProxySettings"]);
108109
},
109110
});
110-
111+
111112
const deleteProxyMutation = useMutation({
112113
mutationFn: () => API.deleteProxySettings(),
113114
onSuccess: () => {
@@ -120,7 +121,7 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
120121
if (userProxyQuery.data?.preferred_proxy) {
121122
// Find the proxy object from the preferred_proxy ID
122123
const proxyId = userProxyQuery.data.preferred_proxy;
123-
return proxiesResp?.find(p => p.id === proxyId);
124+
return proxiesResp?.find((p) => p.id === proxyId);
124125
}
125126
// Fallback to localStorage for migration
126127
return loadUserSelectedProxy();

0 commit comments

Comments
 (0)