mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
59a1746afc
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. |
||
---|---|---|
.. | ||
_locales | ||
fonts | ||
images | ||
scripts | ||
vendor/trezor | ||
home.html | ||
loading.html | ||
manifest.json | ||
notification.html | ||
phishing.html | ||
popup.html | ||
trezor-usb-permissions.html | ||
unsupport.html |