Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
TV2DK-2494: update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jels committed Jul 8, 2019
1 parent 49f9ef6 commit 6f3f58b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scripts/core/core_pending_purposes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export function setPendingPurposes(purposes) {
logInfo('set pending purposes', pendingPurposes)
}

export function addPendingPurpose(Id) {
const id = parseInt(Id, 10);
export function addPendingPurpose(str) {
const id = parseInt(str, 10);
if (pendingPurposes.indexOf(id) === -1) {
pendingPurposes.push(id);
logInfo('add pending purpose', id)
}
}

export function removePendingPurpose(Id) {
const id = parseInt(Id, 10);
export function removePendingPurpose(str) {
const id = parseInt(str, 10);
if (pendingPurposes.indexOf(id) !== -1) {
pendingPurposes = pendingPurposes.filter(i => i !== id);
logInfo('remove pending purpose', id)
Expand Down

0 comments on commit 6f3f58b

Please sign in to comment.