1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 11:46:13 +02:00
metamask-extension/ui/app/pages/confirm-approve
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
..
confirm-approve-content Validate custom spend limit (#7920) 2020-01-29 14:16:38 -04:00
confirm-approve.component.js Validate custom spend limit (#7920) 2020-01-29 14:16:38 -04:00
confirm-approve.container.js Validate custom spend limit (#7920) 2020-01-29 14:16:38 -04:00
confirm-approve.util.js Allow editing max spend limit (#7919) 2020-01-28 22:49:32 -04:00
index.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
index.scss Redesign approve screen (#7271) 2019-11-05 11:43:48 -03:30