aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/buy-eth-url.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-17 07:53:29 +0800
committerDan <danjm.com@gmail.com>2018-04-17 07:53:29 +0800
commite9ca7199ab9b63ef728fa93f8e98295c3096c553 (patch)
tree4c9830b926079e569f92e90b1299ee07457c6c8f /app/scripts/lib/buy-eth-url.js
parentcc7e71488ea9df9246f1bfcf9db9a4695fd515de (diff)
downloadtangerine-wallet-browser-e9ca7199ab9b63ef728fa93f8e98295c3096c553.tar
tangerine-wallet-browser-e9ca7199ab9b63ef728fa93f8e98295c3096c553.tar.gz
tangerine-wallet-browser-e9ca7199ab9b63ef728fa93f8e98295c3096c553.tar.bz2
tangerine-wallet-browser-e9ca7199ab9b63ef728fa93f8e98295c3096c553.tar.lz
tangerine-wallet-browser-e9ca7199ab9b63ef728fa93f8e98295c3096c553.tar.xz
tangerine-wallet-browser-e9ca7199ab9b63ef728fa93f8e98295c3096c553.tar.zst
tangerine-wallet-browser-e9ca7199ab9b63ef728fa93f8e98295c3096c553.zip
Typo fixes, type fixes on the return clauses of the buyEthUrl and getPrefferedLangCode functions.
Diffstat (limited to 'app/scripts/lib/buy-eth-url.js')
-rw-r--r--app/scripts/lib/buy-eth-url.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/lib/buy-eth-url.js b/app/scripts/lib/buy-eth-url.js
index c7c7bc33c..4e2d0bc79 100644
--- a/app/scripts/lib/buy-eth-url.js
+++ b/app/scripts/lib/buy-eth-url.js
@@ -6,8 +6,9 @@ module.exports = getBuyEthUrl
* @param {object} opts Options required to determine the correct url
* @param {string} opts.network The network for which to return a url
* @param {string} opts.amount The amount of ETH to buy on coinbase. Only relevant if network === '1'.
- * @param {string} opts.address The adderss the bought ETH should be sent to. Only relevant if network === '1'.
- * @returns {string} The url at which the user can access ETH, while in the given network
+ * @param {string} opts.address The address the bought ETH should be sent to. Only relevant if network === '1'.
+ * @returns {string|undefined} The url at which the user can access ETH, while in the given network. If the passed
+ * network does not match any of the specified cases, or if no network is given, returns undefined.
*
*/
function getBuyEthUrl ({ network, amount, address }) {