Skip to content

Commit

Permalink
fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyray committed Feb 5, 2024
1 parent b38ac54 commit 1a2ebc7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ export function EmployersList({ translations }: EmployersListProps) {
staleTime: 1000 * 60 * 60, // an hour
});

const onDeleteEmployer = async (employer_id: String) => {
const onDeleteEmployer = async (employer_id: string) => {
const employerRef = doc(firestore, EMPLOYERS_FIRESTORE_PATH, employer_id);
await deleteDoc(employerRef).then(() => onEmployersUpdated());
};

const onArchiveEmployer = async (employer_id: String) => {
const onArchiveEmployer = async (employer_id: string) => {
const employerRef = doc(firestore, EMPLOYERS_FIRESTORE_PATH, employer_id);
await updateDoc(employerRef, { isCurrent: false }).then(() => onEmployersUpdated());
};
Expand Down

0 comments on commit 1a2ebc7

Please sign in to comment.