diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-12-04 01:56:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 01:56:10 +0800 |
commit | 57986c0e1e4f3fb79a78d13f09e5b55efa3b8547 (patch) | |
tree | 7f5822e9eddb66658fd3cfde5b00961ad0ce9de5 /packages/instant/src/index.umd.ts | |
parent | 5a16e78b545a2698be5cd2c3a4f89b7c2fed49b0 (diff) | |
parent | f4e0f74a6df7b8ec89308e10757e7adc9929198f (diff) | |
download | dexon-sol-tools-57986c0e1e4f3fb79a78d13f09e5b55efa3b8547.tar dexon-sol-tools-57986c0e1e4f3fb79a78d13f09e5b55efa3b8547.tar.gz dexon-sol-tools-57986c0e1e4f3fb79a78d13f09e5b55efa3b8547.tar.bz2 dexon-sol-tools-57986c0e1e4f3fb79a78d13f09e5b55efa3b8547.tar.lz dexon-sol-tools-57986c0e1e4f3fb79a78d13f09e5b55efa3b8547.tar.xz dexon-sol-tools-57986c0e1e4f3fb79a78d13f09e5b55efa3b8547.tar.zst dexon-sol-tools-57986c0e1e4f3fb79a78d13f09e5b55efa3b8547.zip |
Merge pull request #1366 from 0xProject/feature/instant/provider-name
[instant] provide a custom wallet display name option
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r-- | packages/instant/src/index.umd.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts index 7391e2844..b92fa3a7c 100644 --- a/packages/instant/src/index.umd.ts +++ b/packages/instant/src/index.umd.ts @@ -39,6 +39,9 @@ const validateInstantRenderConfig = (config: ZeroExInstantConfig, selector: stri if (!_.isUndefined(config.provider)) { assert.isWeb3Provider('provider', config.provider); } + if (!_.isUndefined(config.walletDisplayName)) { + assert.isString('walletDisplayName', config.walletDisplayName); + } if (!_.isUndefined(config.shouldDisablePushToHistory)) { assert.isBoolean('shouldDisablePushToHistory', config.shouldDisablePushToHistory); } |