Skip to content

Commit

Permalink
fix(bitpay): btc payment url input parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Dec 3, 2019
1 parent 22150b3 commit f631cde
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ export default ({ api, coreSagas, networks }) => {
})
if (canceled) return
yield put(actions.modals.closeAllModals())
const r = pathOr({}, ['options', 'r'], bip21Payload)
const data = { r }
yield put(actions.goals.saveGoal('paymentProtocol', data))
yield put(
actions.goals.saveGoal('paymentProtocol', {
coin: 'BTC',
r: pathOr({}, ['options', 'r'], bip21Payload)
})
)
return yield put(actions.goals.runGoals())
}

Expand Down

0 comments on commit f631cde

Please sign in to comment.