Attempt to fix an issue where relay enable is null

This commit is contained in:
SondreB 2023-02-17 00:08:15 +01:00
parent 5440646805
commit 321e17e7f8
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF
2 changed files with 5 additions and 0 deletions

View File

@ -349,6 +349,10 @@ export class RelayService {
this.db.storage.putRelay(relay);
this.items2.push(relay);
} else {
if (relay.enabled == null) {
relay.enabled = true;
}
if (relay.type !== type) {
relay.type = type;
this.db.storage.putRelay(relay);

View File

@ -17,6 +17,7 @@
.loading-text {
text-align: center;
padding-top: 4em;
color: white;
}
</style>
<link rel="manifest" href="manifest.webmanifest" />