Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(wallet): ensure address generation works
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Sep 5, 2019
1 parent f02a2ae commit 64af2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderer/reducers/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export const initAddresses = () => async (dispatch, getState) => {
export const newAddress = addressType => async dispatch => {
dispatch({ type: NEW_ADDRESS, addressType })
try {
const data = await createNewAddress(addressType)
await dispatch(newAddressSuccess(addressType, data.address))
const address = await dispatch(createNewAddress(addressType))
await dispatch(newAddressSuccess(addressType, address))
} catch (error) {
dispatch(newAddressFailure(addressType, error.message))
}
Expand Down

0 comments on commit 64af2da

Please sign in to comment.