Skip to content

Commit

Permalink
fix: accept button stays disabled when zoom is different from 100% (#156
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dan-ziv authored Apr 14, 2022
1 parent 1614da7 commit a745e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/Terms/Terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Terms = () => {
const onScroll = () => {
if (termsRef.current) {
const {scrollTop, scrollHeight, clientHeight} = termsRef.current;
if (scrollTop + clientHeight === scrollHeight) {
if (Math.ceil(scrollTop + clientHeight) >= scrollHeight) {
setAcceptButtonEnable(true);
}
}
Expand Down

0 comments on commit a745e6c

Please sign in to comment.