From 6db4440f8ad5e4518ab5c3343f182e27f52659bd Mon Sep 17 00:00:00 2001 From: Joseph Gilley Date: Thu, 18 Jun 2020 14:13:23 -0700 Subject: [PATCH] dont clear session on delayed rewards --- static/js/banditMl.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/static/js/banditMl.js b/static/js/banditMl.js index f15105a..7baa3a2 100644 --- a/static/js/banditMl.js +++ b/static/js/banditMl.js @@ -671,10 +671,6 @@ banditml.BanditAPI.prototype.logReward = function(reward, experimentId = null, d console.log("Successfully logged reward."); console.log(response); } - if (decisionId === null) { - // TODO: edge case - do we clear session in case of failures too? - this.clearSession(experimentId); - } return response; }).catch(e => { this.logError("Failed to log reward", postBody, e);