Skip to content

Commit fc06a39

Browse files
author
ugogo
committed
fix dataset being undefined
1 parent 0c641d8 commit fc06a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default ({ length = 4, placeholder = '·' }) => {
9797
// @to-do: find which type to use
9898
// to make it compatible with dataset
9999
// @ts-ignore
100-
path.dataset.reactInputVerificationCodeId === CONTAINER_DATA_ID,
100+
path.dataset?.reactInputVerificationCodeId === CONTAINER_DATA_ID,
101101
false
102102
);
103103

0 commit comments

Comments
 (0)