File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed
Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ const ProgramReviewItem = ({
127127 payouts,
128128 skillId,
129129 workerAddress : worker . profile . walletAddress ,
130+ persistent : true ,
130131 } ) ;
131132 }
132133 await acceptLevelTaskSubmission ( ) ;
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ function* taskFinalize({
8181 domainId,
8282 skillId,
8383 payouts,
84+ persistent = false ,
8485 } ,
8586 meta,
8687} : Action < ActionTypes . TASK_FINALIZE > ) {
@@ -116,21 +117,23 @@ function* taskFinalize({
116117 payload : { hash : txHash } ,
117118 } = yield takeFrom ( txChannel , ActionTypes . TRANSACTION_HASH_RECEIVED ) ;
118119
119- /*
120- * @NOTE Put the task in a pending state
121- */
122- yield apolloClient . mutate <
123- SetTaskPendingMutation ,
124- SetTaskPendingMutationVariables
125- > ( {
126- mutation : SetTaskPendingDocument ,
127- variables : {
128- input : {
129- id : draftId ,
130- txHash,
120+ if ( ! persistent ) {
121+ /*
122+ * @NOTE Put the task in a pending state
123+ */
124+ yield apolloClient . mutate <
125+ SetTaskPendingMutation ,
126+ SetTaskPendingMutationVariables
127+ > ( {
128+ mutation : SetTaskPendingDocument ,
129+ variables : {
130+ input : {
131+ id : draftId ,
132+ txHash,
133+ } ,
131134 } ,
132- } ,
133- } ) ;
135+ } ) ;
136+ }
134137
135138 yield takeFrom ( txChannel , ActionTypes . TRANSACTION_RECEIPT_RECEIVED ) ;
136139
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export type TaskActionTypes =
6767 domainId : number ;
6868 skillId : number ;
6969 payouts : Payouts ;
70+ persistent : boolean ;
7071 }
7172 >
7273 | TaskErrorActionType < ActionTypes . TASK_FINALIZE_ERROR >
You can’t perform that action at this time.
0 commit comments