Don't call openPairingConfirmationModal from handleApiReturn

This commit is contained in:
NicolasCantu 2025-03-26 13:42:31 +01:00
parent bb277706fd
commit 2855365851

View File

@ -678,18 +678,12 @@ export default class Services {
// Save process to db // Save process to db
await this.saveProcessToDb(processId, updatedProcess.current_process); await this.saveProcessToDb(processId, updatedProcess.current_process);
const isPaired = this.isPaired();
if (updatedProcess.diffs && updatedProcess.diffs.length != 0) { if (updatedProcess.diffs && updatedProcess.diffs.length != 0) {
try { try {
await this.saveDiffsToDb(updatedProcess.diffs); await this.saveDiffsToDb(updatedProcess.diffs);
} catch (e) { } catch (e) {
console.error('Failed to save diffs to db:', e); console.error('Failed to save diffs to db:', e);
} }
if (!isPaired) {
console.log(updatedProcess);
await this.openPairingConfirmationModal(updatedProcess.current_process.states[0]);
}
} }
} }