1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app
Mark Stacey 59a1746afc
Validate custom spend limit (#7920)
The custom spend limit was previously not validated. It did have a
minimum of zero set, but this didn't have any affect (that minimum is
used for form constraint validation, and this field wasn't in a form).
The field was never checked to ensure the contents didn't exceed the
maximum.

The field is now checked for values that exceed the maximum, and
invalid values in general (including negative values).

The parameters to the `showEditApprovalPermissionModal` were also
alphabetized to make them easier to read. In the course of doing this,
I noticed that the origin was missing from one of the calls. This was
responsible for the modal saying "Spend limit requested by undefined"
when clicking "Edit" under the transaction details. This has been
fixed.
2020-01-29 14:16:38 -04:00
..
components Validate custom spend limit (#7920) 2020-01-29 14:16:38 -04:00
css Make account details modal close button easier to click (#7797) 2020-01-10 10:43:53 -04:00
ducks Replace clone dependency with cloneDeep from lodash (#7926) 2020-01-29 13:14:33 -04:00
helpers Remove unnecessary withRouter and compose calls (#7890) 2020-01-24 15:12:49 -04:00
pages Validate custom spend limit (#7920) 2020-01-29 14:16:38 -04:00
selectors Improve LoginPerSite UX/devX and permissions logging (#7649) 2020-01-27 14:42:03 -08:00
store Improve LoginPerSite UX/devX and permissions logging (#7649) 2020-01-27 14:42:03 -08:00