Skip to content

Commit

Permalink
Fix double const declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
johntwyman committed Aug 6, 2024
1 parent 2bc4c39 commit bcaca1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extensions/contact-loaders/civicrm/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export async function addContactToTag(contactId, tagId) {
export async function addPendingNote(contactId) {
const config = getCivi();

const res = await fetchfromAPI(
const pendingNoteRes = await fetchfromAPI(
config,
"CustomValue",
{
Expand All @@ -252,7 +252,7 @@ export async function addPendingNote(contactId) {
{ method: "post" }
);

const res = await fetchfromAPI(
const activityRes = await fetchfromAPI(
config,
"Activity",
{
Expand All @@ -267,7 +267,7 @@ export async function addPendingNote(contactId) {
{ method: "post" }
);

return res;
return activityRes;
}

/**
Expand Down

0 comments on commit bcaca1e

Please sign in to comment.