fix: importing anything other than killmail broke (#94)

This commit is contained in:
Patric Stout
2024-05-10 18:50:24 +02:00
committed by GitHub
parent e9b8da408a
commit 7c3b7602e0

View File

@@ -119,10 +119,13 @@ export async function eveShipFitHash(fitHash: string): Promise<EsiFit | undefine
switch (fitVersion) {
case "v1":
esiFit = await decodeEsiFitV1(fitEncoded);
break;
case "v2":
esiFit = await decodeEsiFitV2(fitEncoded);
break;
case "killmail":
esiFit = await fetchKillMail(fitEncoded);
break;
}
return esiFit;
}