fix: don't calculate fits till eve-data is loaded (#92)

This commit is contained in:
Patric Stout
2024-05-10 17:29:40 +02:00
committed by GitHub
parent 0d94fd6d19
commit 48a187984b

View File

@@ -423,7 +423,7 @@ export const ShipSnapshotProvider = (props: ShipSnapshotProps) => {
);
React.useEffect(() => {
if (!dogmaEngine.loaded) return;
if (!dogmaEngine.loaded || !eveData.loaded) return;
if (currentFit === undefined || props.skills === undefined) return;
const fit = fixupCharge(currentFit);