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); });