Skip to content

Commit

Permalink
fix: rename methods of fcs and ipc
Browse files Browse the repository at this point in the history
  • Loading branch information
Armanpreet Ghotra committed Dec 19, 2024
1 parent c8e90e2 commit 49ab8a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Map/FcsMap/FcsAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function FcsAccordion({ countryData, loading, countryIso3Data, co
countryData,
countryIso3Data
);
const macroEconomicAccordion = FcsMacroEconomicOperations.getMacroEconomicAccordionOperations(
const macroEconomicAccordion = FcsMacroEconomicOperations.getMacroEconomicAccordionItems(
countryData,
countryIso3Data
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Map/IpcMap/IpcAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function IpcAccordion({ countryData, countryName, countryIso3Data
deltaOneMonth,
deltaThreeMonth
);
const ipcNutrititonAccordion = IpcFoodSecurityAccordionOperations.getNutritionAccordion(countryIso3Data);
const ipcNutrititonAccordion = IpcFoodSecurityAccordionOperations.getNutritionAccordionItems(countryIso3Data);
const isMobile = useMediaQuery('(max-width: 700px)');

return (
Expand Down
2 changes: 1 addition & 1 deletion src/operations/map/FcsMacroEconomicOperations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ReactComponent as Import } from '../../../public/Images/Import.svg';
import { FcsAccordionOperations } from './FcsAccordionOperations';

export class FcsMacroEconomicOperations {
static getMacroEconomicAccordionOperations(
static getMacroEconomicAccordionItems(
countryData: CountryData | undefined,
countryIso3Data: CountryIso3Data | undefined
) {
Expand Down
2 changes: 1 addition & 1 deletion src/operations/map/IpcFoodSecurityOperations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class IpcFoodSecurityAccordionOperations {
};
}

static getNutritionAccordion(countryIso3Data: CountryIso3Data | undefined) {
static getNutritionAccordionItems(countryIso3Data: CountryIso3Data | undefined) {
const nutritionData = FcsAccordionOperations.getNutritionData(countryIso3Data);

if (!nutritionData || (nutritionData.Acute == null && nutritionData.Chronic == null)) {
Expand Down

0 comments on commit 49ab8a9

Please sign in to comment.