Skip to content

Commit

Permalink
lgging
Browse files Browse the repository at this point in the history
  • Loading branch information
bacalj committed Aug 18, 2024
1 parent d862d3b commit 6efc8c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/simulation-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export const SimulationTab: React.FC<SimulationTabProps> = ({
const { getDayLengthData, getUniqueLocationsInCodapData } = useCodapData();

const handleGetDataClick = async () => {
// console.log("| sim says to go ahead an get data with local lat, long: ", latitude, longitude);
// console.log("| also, if location is novel, we need to save it to the locations array");
console.log("||| SIM tab click");

Check warning on line 36 in src/components/simulation-tab.tsx

View workflow job for this annotation

GitHub Actions / Build and Run Jest Tests

Unexpected console statement

Check warning on line 36 in src/components/simulation-tab.tsx

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
const name = `(${latitude}, ${longitude})`;
const currentLocation: ILocation = { name, latitude: Number(latitude), longitude: Number(longitude) };
const locationExists = locations.some(item => locationsEqual(item, currentLocation));
Expand All @@ -61,7 +60,7 @@ export const SimulationTab: React.FC<SimulationTabProps> = ({
locations={locations}
/>
</div>
<button onClick={handleGetDataClick}>
<button className="get-data-button" onClick={handleGetDataClick}>
Get Data
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useCodapData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const useCodapData = () => {
const locationAttr = await getAttribute(kDataContextName, kParentCollectionName, "location");
if (locationAttr.success){
const allItems = await getAllItems(kDataContextName);
console.log("|| sync opportunity? ", allItems);
console.log("||| getting locations in CODAP data... sync opportunity ", allItems);

Check warning on line 126 in src/hooks/useCodapData.ts

View workflow job for this annotation

GitHub Actions / Build and Run Jest Tests

Unexpected console statement

Check warning on line 126 in src/hooks/useCodapData.ts

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
if (allItems.success){
const uniqeLocations: ILocation[] = extractUniqueLocations(allItems.values);
return uniqeLocations;
Expand Down

0 comments on commit 6efc8c8

Please sign in to comment.