fix: don't calculate fits till eve-data is loaded (#92)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user