Skip to content

Commit d9b3abe

Browse files
author
Pietro Grandi
committed
Remove token from API
1 parent 65bac11 commit d9b3abe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ This project template was built with [Create React App](https://github.com/faceb
1313

1414
Using [Stripe API](https://stripe.com/docs/api#list_customers) for customers' management.
1515

16+
## Before running
17+
18+
Make sure you get you own API key from Stripe and put it in `src/API.js`
19+
1620
## Available Scripts
1721

1822
In the project directory, you can run:

src/middlewares/listUpdater.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ const listUpdater = ({ dispatch, getState }) => next => action => {
2323
}
2424
throw new Error('Network error.')
2525
})
26-
.then(response => {
27-
dispatch(listUpdated(response.data))
28-
})
26+
.then(response => dispatch(listUpdated(response.data)))
2927
.catch(reason => dispatch(resultError(reason)))
3028
break
3129

0 commit comments

Comments
 (0)