[FIX] website: hide countdown at the end

When using the options 'Hide countdown at the end', only the first
canvas would dissapear and the message wasn't showing up. It was due
to a return in a loop that would cause the code to stop at that point
instead of just going to the next iteration as intented.

task-2261649

closes odoo/odoo#53218

X-original-commit: 9b5f5cfce5d2d01c8e02f231e69ab350a3178795
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
DramixDw
2020-06-18 09:32:04 +00:00
parent 5a6d4c4932
commit 2feaee191b
@@ -208,7 +208,7 @@ const CountdownWidget = publicWidget.Widget.extend({
$(canvas).toggleClass('d-none', hideCountdown);
if (hideCountdown) {
return;
continue;
}
// Draw canvas elements