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 564f76584b
Tolerate missing or falsey substitutions (#8907)
Previously the `getMessage` function would throw if a substitution was
falsey. Now it will accept any substitution, including `undefined`.

A substitution of `null` or `undefined` will still be reported to
Sentry and printed to the console as an error, but it will not
interrupt execution. Any `null` or `undefined` substitutions will be
rendered as empty strings.

Ideally we'd never pass in `null` or `undefined` as a substitution, but
in practice this sometimes just occurs breifly between renders, which
isn't a severe enough problem to justify crashing the UI.

The detection of React component substitutions has been updated as
well, to ensure that `null` values aren't counted as React
substitutions.
2020-07-03 13:02:35 -03:00
..
components Replace percentage opacity value (#8898) 2020-07-02 21:51:41 -03:00
contexts
css Align copy tooltip text and icon (#8861) 2020-06-24 15:34:18 -07:00
ducks Add envar for ETH Gas Station API key (#8870) 2020-06-29 14:56:21 -02:30
helpers Tolerate missing or falsey substitutions (#8907) 2020-07-03 13:02:35 -03:00
hooks fix language code format mismatch (#8889) 2020-07-02 15:13:23 -05:00
pages Show origin in connect flow rather than site name (#8885) 2020-07-02 14:08:43 -03:00
selectors Fix account order on unconnected account alert (#8863) 2020-06-25 21:05:42 -03:00
store Include relative time polyfill locale data (#8896) 2020-07-02 21:34:48 -03:00