Skip to content

Commit

Permalink
fix(web): remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Nov 27, 2024
1 parent 87cc0fb commit d2c828b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/congregation.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const apiFetchCountries = async () => {
}
};

export const apiFetchCongregations = async (id) => {
export const apiFetchCongregations = async () => {
const { apiHost, visitorID } = await getProfile();

try {
Expand Down
8 changes: 4 additions & 4 deletions src/api/users.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getAuth } from 'firebase/auth';
import { getProfile } from './common';

export const apiFetchUsers = async (id) => {
export const apiFetchUsers = async () => {
const { apiHost, visitorID } = await getProfile();

try {
Expand All @@ -14,7 +14,7 @@ export const apiFetchUsers = async (id) => {
headers: {
'Content-Type': 'application/json',
appclient: 'admin',
appversion: import.meta.env.PACKAGE_VERSION,
appversion: import.meta.env.PACKAGE_VERSION,
visitorid: visitorID,
uid: user.uid,
},
Expand All @@ -39,7 +39,7 @@ export const apiUserTokenRevoke = async (id) => {
headers: {
'Content-Type': 'application/json',
appclient: 'admin',
appversion: import.meta.env.PACKAGE_VERSION,
appversion: import.meta.env.PACKAGE_VERSION,
visitorid: visitorID,
uid: user.uid,
},
Expand All @@ -66,7 +66,7 @@ export const apiUserDelete = async (id) => {
headers: {
'Content-Type': 'application/json',
appclient: 'admin',
appversion: import.meta.env.PACKAGE_VERSION,
appversion: import.meta.env.PACKAGE_VERSION,
visitorid: visitorID,
uid: user.uid,
},
Expand Down
1 change: 1 addition & 0 deletions src/features/users/CongregationSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const CongregationSelect = ({ country, setCongregation }) => {
}, 2000);
}
} catch (err) {
console.error(err);
setIsLoading(false);
}

Expand Down

0 comments on commit d2c828b

Please sign in to comment.