Skip to content

Commit

Permalink
chore: sonar fixes - 3
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <sanpj2292@github.com>
  • Loading branch information
Sai Sankeerth committed Jan 31, 2024
1 parent 77186cd commit add8c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deviceModeInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ let _rudderTracking = (function () {
}
});
if (elementsToSend.length > 0) {
elementsToSend.forEach(async (product) => {
elementsToSend.forEach((product) => {
const handle = product.href.match(/(\/products\/)((\w|-)*)(\?|\$?)/)[2];
await rs$
rs$
.get(`/products/${handle}.json`, undefined, undefined, 'JSON')
.then((data) => {
const rudderstackProduct = propertyMapping(data.product, productMapping); // here as well
Expand Down

0 comments on commit add8c14

Please sign in to comment.