mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
bb3a0423d4
This fixes a PropType error when using non-custom slippage, and it fixes a type inconsistency when custom slippage is used. Previously, `slippage` was being converted explicitly to a `Number` as it was passed into `BuildQuote`, but not as it was passed into `AwaitingSwap`. Also the PropType was set as `string`, despite the fact that it's a number in most cases, and is used for math. The PropType has been changed to `number`, and the selective casting to `Number` has been removed. Instead, the `maxSlippage` value is cast to a `Number` as it's being selected, so that the type is always consistent. |
||
---|---|---|
.. | ||
actionable-message | ||
awaiting-swap | ||
build-quote | ||
countdown-timer | ||
dropdown-input-pair | ||
dropdown-search-list | ||
exchange-rate-display | ||
fee-card | ||
intro-popup | ||
loading-swaps-quotes | ||
main-quote-summary | ||
searchable-item-list | ||
select-quote-popover | ||
slippage-buttons | ||
swaps-footer | ||
swaps-gas-customization-modal | ||
view-quote | ||
index.js | ||
index.scss | ||
swaps-util-test-constants.js | ||
swaps.util.js | ||
swaps.util.test.js |