Skip to content

Commit

Permalink
last minute fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsingal committed Mar 20, 2024
1 parent 307fbb5 commit 112aa63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ const EUDRBasemapControl = () => {
(checked: boolean) => {
dispatch(setBasemap('planet'));
dispatch(setPlanetLayer({ active: checked }));
if (!checked) dispatch(setPlanetCompareLayer({ active: false }));
if (!checked) {
dispatch(setBasemap('light'));
dispatch(setPlanetCompareLayer({ active: false }));
}
},
[dispatch],
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/containers/analysis-eudr/map/compare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ setDefaultCredentials({
'eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfemsydWhpaDYiLCJqdGkiOiJjZDk0ZWIyZSJ9.oqLagnOEc-j7Z4hY-MTP1yoZA_vJ7WYYAkOz_NUmCJo',
});

const EUDRCompareMap: React.FC<{ supplierId?: string }> = ({ supplierId }) => {
const EUDRCompareMap = () => {
const maps = useMap();

const {
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/eudr/suppliers/[supplierId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const MapPage: NextPageWithLayout = () => {

<section className="relative flex h-screen flex-1 flex-col">
{!planetCompareLayer.active && <DynamicMap supplierId={supplierId} />}
{planetCompareLayer.active && <DynamicCompareMap supplierId={supplierId} />}
{planetCompareLayer.active && <DynamicCompareMap />}
</section>
</div>
</MapProvider>
Expand Down

0 comments on commit 112aa63

Please sign in to comment.