aboutsummaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-02-12 04:40:28 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-02-12 04:40:28 +0100
commit04aad590fb9e6141982a3d0a5aec7c29356e9c76 (patch)
tree58d96c8176dcc1e8ea32be658cd4caa397b68747 /src/pages
parente61aae74d7551582d2eaa498665a96c012a16019 (diff)
accept exchange URL suggestion from bank
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/confirm-create-reserve.tsx6
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,