Skip to content

Commit

Permalink
Update isNan to isInteger
Browse files Browse the repository at this point in the history
  • Loading branch information
AdobeLinhart committed Nov 4, 2024
1 parent c87b75c commit 487d8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/martech/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function decorateDefaultLinkAnalytics(block, config) {
}

export async function decorateSectionAnalytics(section, idx, config) {
const id = Number.isNaN(idx) ? `s${idx + 1}` : idx;
const id = Number.isInteger(idx) ? `s${idx + 1}` : idx;
document.querySelector('main')?.setAttribute('daa-im', 'true');
section.setAttribute('daa-lh', id);
section.querySelectorAll('[data-block] [data-block]').forEach((block) => {
Expand Down

0 comments on commit 487d8f4

Please sign in to comment.