'handleOk' was used before it was defined.eslint@typescript-eslint/no-use-before-define ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)