(contact)
| 387 | } |
| 388 | |
| 389 | export async function updateContact(contact) { |
| 390 | const normalizedContact = typeof contact === 'string' ? JSON.parse(contact) : contact; |
| 391 | await apiRequest(UPDATE_CONTACT, {body: {newContact: normalizedContact}}); |
| 392 | |
| 393 | const metadata = await getMetadata(); |
| 394 | await setMetadata({...metadata, Contact: normalizedContact}); |
| 395 | } |
| 396 | |
| 397 | export async function collectProgram(programID) { |
| 398 | await apiRequest(COLLECT_PROGRAM, {body: {ProgramID: programID}}); |
no test coverage detected