Skip to content

Commit

Permalink
fix(microcenter): add outOfStock label (#2432)
Browse files Browse the repository at this point in the history
The current inStock label only looks for the words "in stock"; however,
recent changes to Micro Center's website results in there sometimes being
"0 NEW IN STOCK".

Fixes #2407
  • Loading branch information
dlew committed Apr 24, 2021
1 parent d652b49 commit 092919a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/store/model/microcenter.ts
Expand Up @@ -347,6 +347,10 @@ export const MicroCenter: Store = {
container: '#pnlInventory',
text: ['in stock'],
},
outOfStock: {
container: '.inventoryCnt',
text: ['0'],
},
maxPrice: {
container: 'span[id="pricing"]',
euroFormat: false,
Expand Down

0 comments on commit 092919a

Please sign in to comment.