fix pairing handling
This commit is contained in:
parent
aae7f57dc8
commit
5b1c840dd9
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue