Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Akctarus committed Oct 2, 2024
1 parent 9f5a1f9 commit 90c084c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const SimulationReportSheet = ({
path_number2: 'n°YYYYYY',
};

const [mapBlob, setMapBlob] = useState<string | null>(null);
const [mapImageUrl, setMapImageUrl] = useState<string | null>(null);

// Convert image to JPEG
useEffect(() => {
Expand All @@ -48,7 +48,7 @@ const SimulationReportSheet = ({
URL.revokeObjectURL(objectUrl);
}
objectUrl = URL.createObjectURL(blob);
setMapBlob(objectUrl);
setMapImageUrl(objectUrl);
}
});
}
Expand Down Expand Up @@ -374,7 +374,7 @@ const SimulationReportSheet = ({
</View>
{mapCanvas && (
<View style={styles.map.map} id="simulationMap">
{mapBlob && <Image src={mapBlob} />}
{mapImageUrl && <Image src={mapImageUrl} />}
</View>
)}
<View style={styles.footer.warrantyBox}>
Expand Down

0 comments on commit 90c084c

Please sign in to comment.