diff --git a/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp b/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp index 9e304c63b4..dc05f072f3 100644 --- a/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp +++ b/native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp @@ -685,10 +685,8 @@ jsi::Value CommCoreModule::initializeCryptoAccount(jsi::Runtime &rt) { promise->reject(error); return; } + promise->resolve(jsi::Value::undefined()); }); - - this->jsInvoker_->invokeAsync( - [=]() { promise->resolve(jsi::Value::undefined()); }); }; try { this->cryptoThread->scheduleTask(cryptoJob);