(applicants)
| 35 | } |
| 36 | |
| 37 | export async function setApplicantIDByDisplayName(applicants) { |
| 38 | /* |
| 39 | * Set the list of applicants to the local storage (i.e. localforage.getItem('applicants')) |
| 40 | * @param applicants [Array]: list of applicants |
| 41 | */ |
| 42 | if (!applicants) { |
| 43 | return; |
| 44 | } |
| 45 | const displayName = await getDisplayName(); |
| 46 | const metadata = await getMetadata(displayName, true); |
| 47 | await setMetadata({...metadata, ApplicantIDs: applicants}, displayName); |
| 48 | } |
| 49 | |
| 50 | export async function deleteApplicantIDByDisplayName(applicantId) { |
| 51 | /* |
no test coverage detected