mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 21:00:13 +01:00
564f76584b
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. |
||
---|---|---|
.. | ||
common.util.js | ||
common.util.test.js | ||
confirm-tx.util.js | ||
confirm-tx.util.test.js | ||
conversion-util.js | ||
conversion-util.test.js | ||
conversions.util.js | ||
fetch-with-cache.js | ||
fetch-with-cache.test.js | ||
formatters.js | ||
gas-time-estimates.util.js | ||
i18n-helper.js | ||
i18n-helper.test.js | ||
metametrics.util.js | ||
switch-direction.js | ||
token-util.js | ||
transactions.util.js | ||
transactions.util.test.js | ||
util.js | ||
util.test.js |