Skip to content

Commit f5226fa

Browse files
author
Andreas Savvides
committed
Adding an extra (necessary) then
1 parent ca420fe commit f5226fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ReactDigits.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ export default class ReactDigits extends React.Component {
6363
},
6464
body: JSON.stringify(data)
6565
}).then(finalResponse => {
66+
return finalResponse.json();
67+
}).then(jsonResponse => {
6668
// Handle the final response and change into
6769
// whatever state you need to depending on
6870
// if the user has been validated or not.

0 commit comments

Comments
 (0)