Skip to content

Commit 74fc0c8

Browse files
committed
fix
1 parent 8948be0 commit 74fc0c8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lib/public/views/QcFlags/details/qcFlagDetailsComponent.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,13 @@ export const qcFlagDetailsComponent = (qcFlagDetailsModel, additionalDetailsConf
8686
const { personid } = sessionService.get();
8787

8888
/**
89-
* Function to send verification
89+
* Factory of function to send verification
90+
*
9091
* @param {number} userId id of the current user
9192
* @param {number} flagCreatorId id of a flag creator
9293
* @return {void}
9394
*/
94-
const qcFlagVerificationSendHandlerFabric = (userId, flagCreatorId) => () => {
95+
const qcFlagVerificationSendHandlerFactory = (userId, flagCreatorId) => () => {
9596
const userQuestion = 'Verifying the flag by the same person who added the flag. \
9697
A different person to verify the flag is encouraged. Do you want to continue?';
9798

@@ -203,7 +204,7 @@ A different person to verify the flag is encouraged. Do you want to continue?';
203204
}),
204205
createButton(
205206
verificationCreationModel.isValid()
206-
? qcFlagVerificationSendHandlerFabric(personid, qcFlag.createdBy.externalId)
207+
? qcFlagVerificationSendHandlerFactory(personid, qcFlag.createdBy.externalId)
207208
: null,
208209
'Post verification',
209210
),
@@ -214,7 +215,7 @@ A different person to verify the flag is encouraged. Do you want to continue?';
214215
}),
215216
createButton(
216217
verificationCreationModel.isValid()
217-
? qcFlagVerificationSendHandlerFabric(personid, qcFlag.createdBy.externalId)
218+
? qcFlagVerificationSendHandlerFactory(personid, qcFlag.createdBy.externalId)
218219
: null,
219220
'Post verification',
220221
),

0 commit comments

Comments
 (0)