diff --git a/wasm/fileTransfer.go b/wasm/fileTransfer.go
index 77201c52b11fed4e39ab91a0f75f922a63993f80..21e435301678eabdb7c8e9ab0539aa5db6f82783 100644
--- a/wasm/fileTransfer.go
+++ b/wasm/fileTransfer.go
@@ -62,9 +62,8 @@ type receiveFileCallback struct {
 // Parameters:
 //  - payload - Returns the contents of the message. JSON of
 //    [bindings.ReceivedFile] (Uint8Array).
-//  - err - Returns an error on failure (Error).
-func (rfc *receiveFileCallback) Callback(payload []byte, err error) {
-	rfc.callback(utils.CopyBytesToJS(payload), utils.JsTrace(err))
+func (rfc *receiveFileCallback) Callback(payload []byte) {
+	rfc.callback(utils.CopyBytesToJS(payload))
 }
 
 // fileTransferSentProgressCallback wraps Javascript callbacks to adhere to the