Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.

Commit d935e8e

Browse files
danney-chunDongjin Jung
andauthored
Update lib/utils/domUtil.js
Co-authored-by: Dongjin Jung <cobb.jung@sendbird.com>
1 parent 0992361 commit d935e8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/domUtil.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export function replaceClassName(element, searchValue, newValue) {
141141
}
142142

143143
export function hasClassName(element, searchValue) {
144-
if(element.classList.value.indexOf(searchValue) === -1) {
144+
return (element.classList.value.indexOf(searchValue) !== -1);
145145
return false;
146146
}
147147
return true;
148-
}
148+
}

0 commit comments

Comments
 (0)