diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-12 04:40:28 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-12 04:40:28 +0100 |
commit | 04aad590fb9e6141982a3d0a5aec7c29356e9c76 (patch) | |
tree | 58d96c8176dcc1e8ea32be658cd4caa397b68747 /src/pages | |
parent | e61aae74d7551582d2eaa498665a96c012a16019 (diff) |
accept exchange URL suggestion from bank
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/confirm-create-reserve.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pages/confirm-create-reserve.tsx b/src/pages/confirm-create-reserve.tsx index da86729d3..44dd60d95 100644 --- a/src/pages/confirm-create-reserve.tsx +++ b/src/pages/confirm-create-reserve.tsx @@ -396,7 +396,11 @@ export async function main() { throw Error(i18n.str`Can't parse wire_types: ${e.message}`); } - const suggestedExchangeUrl = await getSuggestedExchange(amount.currency); + let suggestedExchangeUrl = await getSuggestedExchange(amount.currency); + if (!suggestedExchangeUrl && query.suggested_exchange_url) { + suggestedExchangeUrl = query.suggested_exchange_url; + } + let args = { wt_types, suggestedExchangeUrl, |