You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
OpenGraph extraction broke when the parsePrice utility function was added.
This is because, at the same time parsePrice was added, the extractedProduct propTypes shape was modified to expect extractedProduct.price to be of type Number rather than String.
While Fathom and fallback extraction both make use of parsePrice, OpenGraph extraction currently does not. It should be added so that its extraction does not fail the propTypes check.
The text was updated successfully, but these errors were encountered:
This PR depends on PR#143, so merge that one first.
This is a bit of a moot point for the MVP, since #70 restricts extraction to our five supported sites, none of which make use of Open Graph meta tags, however, that may change, and the fix was quick.
Note: To test this, comment out the other extraction methods in './src/extraction/index.js' and the allowlist check in that file's 'main' function, then visit a Crate and Barrel product page.
OpenGraph extraction broke when the
parsePrice
utility function was added.This is because, at the same time
parsePrice
was added, theextractedProduct
propTypes shape was modified to expectextractedProduct.price
to be of typeNumber
rather thanString
.While Fathom and fallback extraction both make use of
parsePrice
, OpenGraph extraction currently does not. It should be added so that its extraction does not fail the propTypes check.The text was updated successfully, but these errors were encountered: