Help for onReady function

Good Morning, I am looking for assistance with this code, it worked as it should in test, but when I published it on the website, the input from the user is not showing up in the repeater. Any idea why it is not functioning correctly? Thanks,

Error message:
Property ‘onAfterSave’ does not exist on type ‘MultistateBox’.

$w ( “#commentswrite” ). onAfterSave ( () => {