fix pairing handling

This commit is contained in:
Michele Balistreri 2024-09-13 13:26:20 +02:00
parent aae7f57dc8
commit 5b1c840dd9
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ const Main = () => {
}
const addPairing = async (instanceUID, pairing) => {
const pairings = getPairings();
pairings[instanceUID] = pairing;
const pairings = await getPairings();
pairings[instanceUID] = {pairing: pairing};
return AsyncStorage.setItem("pairings", JSON.stringify(pairings));
}