[FIX] stripe: Fix when no access token set

- When no access token is set, the stripe implementation uses a the access token the string 'undefined'.
This commit is contained in:
tbe-odoo
2018-01-22 15:03:19 +01:00
parent a3d3e5e7fe
commit dfe7f00e78
@@ -81,7 +81,7 @@ odoo.define('payment_stripe.stripe', function(require) {
return false;
}
var so_token = $("input[name='token']").val();
var so_token = $("input[name='token']").val() || '';
var so_id = $("input[name='return_url']").val().match(/quote\/([0-9]+)/) || undefined;
if (so_id) {
so_id = parseInt(so_id[1]);