From 0944352a3f7e89433d4e69b0dd32e027414b8b18 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Fri, 29 Jul 2022 23:54:11 -0500 Subject: [PATCH] system repo bug fix --- squarenotsquare/src/realm/repos/SystemRepo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squarenotsquare/src/realm/repos/SystemRepo.js b/squarenotsquare/src/realm/repos/SystemRepo.js index 31a9f08..eab676e 100644 --- a/squarenotsquare/src/realm/repos/SystemRepo.js +++ b/squarenotsquare/src/realm/repos/SystemRepo.js @@ -45,7 +45,7 @@ export default class SystemRepo { deleteSystemValue = (key) => { let existingKey = this.getSystemKeyValue(key); - if (!existingKey.id === null) { + if (existingKey.id !== null) { this.realmDB.write(() => { this.realmDB.delete(existingKey); });