Untitled
unknown
plain_text
3 years ago
729 B
8
Indexable
let activePrice = item?.optimizedPrice?.displayPrice?.formattedValue?.replace('$', '') || null;
activePrice = activePrice ? activePrice.replace(/\s/g, '') : '';
if (this.state.lang == 'fr') {
activePrice = activePrice ? activePrice.replace(',', '.') : '';
} else {
activePrice = activePrice ? activePrice.replace(',', '') : '';
}
let wasPrice = item?.optimizedPrice?.wasprice?.value?.replace('$', '') || null;
wasPrice = wasPrice ? wasPrice.replace(/\s/g, '') : '';
if (this.state.lang == 'fr') {
wasPrice = wasPrice ? wasPrice.replace(',', '.') : '';
} else {
wasPrice = wasPrice ? wasPrice.replace(',', '') : '';
}Editor is loading...