Skip to content

Commit cb79abd

Browse files
committed
Use rounding
1 parent d1d8323 commit cb79abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/components/monei-apple-google-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const MoneiAppleGoogleContent = ( props ) => {
7373
accountId: moneiData.accountId,
7474
sessionId: moneiData.sessionId,
7575
language: moneiData.language,
76-
amount: parseInt( moneiData.total * 100 ),
76+
amount: Math.round( moneiData.total * 100 ),
7777
currency: moneiData.currency,
7878
onSubmit( result ) {
7979
if ( result.token ) {

0 commit comments

Comments
 (0)