json extension prop is an array (#6866)
This commit is contained in:
parent
a141890b09
commit
8e92083188
|
@ -142,9 +142,11 @@ export class Vault {
|
||||||
);
|
);
|
||||||
if (response.status === HttpStatusCode.Ok) {
|
if (response.status === HttpStatusCode.Ok) {
|
||||||
const json = await response.json();
|
const json = await response.json();
|
||||||
const k1 = json?.extensions?.LastPassK1 as string;
|
if (json?.extensions != null && json.extensions.length > 0) {
|
||||||
if (k1 != null) {
|
const k1 = json.extensions[0].LastPassK1 as string;
|
||||||
return Utils.fromB64ToArray(k1);
|
if (k1 != null) {
|
||||||
|
return Utils.fromB64ToArray(k1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue