Showing
1 changed file
with
5 additions
and
1 deletions
@@ -37,7 +37,11 @@ const exchange = { | @@ -37,7 +37,11 @@ const exchange = { | ||
37 | }); | 37 | }); |
38 | 38 | ||
39 | if (data.address_id) { | 39 | if (data.address_id) { |
40 | - data.address_id = crypto.decrypt(null, data.address_id); | 40 | + data.address_id = crypto.decrypt(null, decodeURIComponent(data.address_id)); |
41 | + } | ||
42 | + | ||
43 | + if (!data.zip_code) { | ||
44 | + delete data.zip_code; | ||
41 | } | 45 | } |
42 | 46 | ||
43 | return api.post('', data); | 47 | return api.post('', data); |
-
Please register or login to post a comment