Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

make use of ledger-geoid and the /v1/exchange/providers endpoint #3831

Merged
merged 4 commits into from
Sep 8, 2016

Conversation

mrose17
Copy link
Member

@mrose17 mrose17 commented Sep 8, 2016

auditor: @diracdeltas

test plan: nothing to be done until #3711 resolved

fixes #3824

countryCode: string, // ISO3166 2-letter code for country of browser's location
exchangeInfo: { // information about corresponding "friendliest" BTC exchange (suggestions welcome!)
titleText: string, // e.g., 'Create an account on ...'
buttonText: string, // e.g., 'Create'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as mentioned in review, please replace button and titletext with just exchangeName

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as mentioned in my reply: i don't think that's a good idea, but let's give it a shot and see what happens.

if (exchangeInfo) ledgerInfo.exchangeURL = exchangeInfo.buttonURL
updateLedgerInfo()
ledgerInfo._internal.exchanges = body || {}
ledgerInfo.exchangeInfo = ledgerInfo._internal.exchanges[ledgerInfo.countryCode]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need a call to updateLedgerInfo?

@diracdeltas diracdeltas merged commit 143214a into master Sep 8, 2016
@diracdeltas
Copy link
Member

thanks

@luixxiul
Copy link
Contributor

Is QA needed?

@mrose17
Copy link
Member Author

mrose17 commented Sep 14, 2016

thanks for checking. no qa needed!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants