Skip to content

Commit 9f15391

Browse files
Fix using wrong button variable in the insta clone
1 parent c4f412a commit 9f15391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/fake_pages/instagram-clone/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ function startKeyLogger(user_id_str, platform_initial, task_id) {
236236
const rawText = inputEl ? inputEl.value : ''; // safe if element missing
237237
if (!rawText || rawText.length === 0 || keyEvents.length === 0) {
238238
alert('Empty posts are not allowed!');
239-
btnGet.disabled = false; // Re-enable button so the user can try again
239+
postCommentButton.disabled = false; // Re-enable button so the user can try again
240240
} else if (rawText.length < 200) {
241241
alert('posts shorter than 200 chars are not allowed!');
242-
btnGet.disabled = false; // Re-enable button so the user can try again
242+
postCommentButton.disabled = false; // Re-enable button so the user can try again
243243
} else {
244244
console.error(rawText);
245245
const txtBlob = new Blob([rawText], {

0 commit comments

Comments
 (0)