1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app
Mark Stacey bb3a0423d4
Ensure custom slippage is a number (#9915)
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.
2020-11-19 11:56:55 -03:30
..
components Revert view quote design updates (#9904) 2020-11-18 22:10:24 -03:30
contexts fix METAMASK-GH2B (#9900) 2020-11-17 16:49:19 -06:00
css Use 1px borders on inputs and buttons (#9766) 2020-10-30 13:31:42 -05:00
ducks Fixes related to swaps custom gas limit (#9858) 2020-11-12 15:42:04 -03:30
helpers fix METAMASK-GH2B (#9900) 2020-11-17 16:49:19 -06:00
hooks show failed token balance updates (#9896) 2020-11-18 16:13:28 -06:00
pages Ensure custom slippage is a number (#9915) 2020-11-19 11:56:55 -03:30
selectors Fix gas_fees properties collected for swaps analytics events (#9727) 2020-11-10 14:09:45 -03:30
store Track a new schema event when adding a token (#9810) 2020-11-17 11:39:21 -06:00