Initialize OnVoard object

Specify the following snippet once before you add any javascript API code so that OnVoard object is initialized.

<script>
(function() {
window.OnVoard = window.OnVoard || function() {
(window.OnVoard.q = window.OnVoard.q || []).push(arguments);
};
})();
</script>

On Recommendation Rendered Event
Execute a callback function when recommendation is rendered. This can be used to execute currency reconvert method to convert product prices to active currency.

const callback= () => {
Currency.convertAll();
};

OnVoard('recommender', 'onRecommendationRendered', callback);