Skip to content

Commit

Permalink
Reorder the functions to satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Oct 26, 2021
1 parent 93ce5b0 commit f0759ce
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,15 @@ function invite(logins, welcomeNote, policyID) {
});
}

/**
* Sets local values for the policy
* @param {String} policyID
* @param {Object} values
*/
function updateLocalPolicyValues(policyID, values) {
Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, values);
}

/**
* Sets the name of the policy
*
Expand Down Expand Up @@ -329,15 +338,6 @@ function uploadAvatar(policyID, file) {
});
}

/**
* Sets local values for the policy
* @param {String} policyID
* @param {Object} values
*/
function updateLocalPolicyValues(policyID, values) {
Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, values);
}

/**
* @param {String} policyID
* @param {Object} errors
Expand Down

0 comments on commit f0759ce

Please sign in to comment.