Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Replace spread operator to fix bug in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
romainhuet committed Jun 11, 2018
1 parent ca0661a commit 6b76833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/payments.js
Expand Up @@ -114,7 +114,7 @@

// Create a iDEAL Bank Element and pass the style options, along with an extra `padding` property.
const idealBank = elements.create('idealBank', {
style: {base: {...style.base, padding: '10px 15px'}},
style: {base: Object.assign({padding: '10px 15px'}, style.base)},
});

// Mount the iDEAL Bank Element on the page.
Expand Down

0 comments on commit 6b76833

Please sign in to comment.