Skip to content

Commit

Permalink
[TASK] Fix CI (JS linting)
Browse files Browse the repository at this point in the history
  • Loading branch information
rintisch committed May 30, 2024
1 parent c18c432 commit 57780bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Build/Sources/JavaScript/change_be_variant.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ import { dispatchCustomEvent } from './helper/dispatch_custom_event';

document.addEventListener('DOMContentLoaded', () => {
function setValue (parentElement, targetElementClass, spanClass, value) {

const targetElement = parentElement.querySelector(targetElementClass);
if (targetElement) {
const spanElement = targetElement.querySelector(spanClass);

if(typeof(value) === 'undefined'){
if (typeof (value) === 'undefined') {
spanElement.innerHTML = ' ';
return
return;
}

if (spanClass !== '.stock') {
Expand Down

0 comments on commit 57780bd

Please sign in to comment.