Submit feedback button not hide

frappe.ui.form.on(‘Interview’, {
refresh(frm) {
setTimeout(() => {
if (frm.doc.status === ‘No Show’){
frm.remove_custom_button(‘Submit Feedback’);
}

    }, 200);
}

});

i used this client script for when interview status equal to ‘No Show’ then hide submit feedback button
now status is pending when i change status to ‘No Show’ and save the interview then again this submit feedback button show.
for that what we have to do
please suggest any solution

Remove your line and add the below line:

$('button[data-label="Submit%20Feedback"]').hide();

Also, reduce the setTimeout.

Then reload Ctrl+Shift+R and check it.

i have reduce setTimeout from 200 to 100
now its work
Thank you @NCP