Skip to content

Commit

Permalink
Merge pull request #4550 from unicef/hotfix/for-each-error
Browse files Browse the repository at this point in the history
[hotfix]/for each error
  • Loading branch information
johniak authored Jan 16, 2025
2 parents 0839583 + 7281e4f commit 08496a4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const ProgramCycleDetailsHeader = ({
await finishMutation();
showMessage(t('Programme Cycle Finished'));
} catch (e) {
e.data?.forEach((message: string) => showMessage(message));
showMessage(e?.message);
}
};

Expand All @@ -100,7 +100,7 @@ export const ProgramCycleDetailsHeader = ({
await reactivateMutation();
showMessage(t('Programme Cycle Reactivated'));
} catch (e) {
e.data?.forEach((message: string) => showMessage(message));
showMessage(e?.message);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const DeleteProgramCycle = ({
await mutateAsync();
showMessage(t('Programme Cycle Deleted'));
} catch (e) {
e.data?.forEach((message: string) => showMessage(message));
showMessage(e?.message);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const ProgramCyclesTablePaymentModule = ({
await finishMutation({ programCycleId: decodedProgramCycleId });
showMessage(t('Programme Cycle Finished'));
} catch (e) {
e.data?.forEach((message: string) => showMessage(message));
showMessage(e?.message);
}
};

Expand All @@ -100,7 +100,7 @@ export const ProgramCyclesTablePaymentModule = ({
await reactivateMutation({ programCycleId: decodedProgramCycleId });
showMessage(t('Programme Cycle Reactivated'));
} catch (e) {
e.data?.forEach((message: string) => showMessage(message));
showMessage(e?.message);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const ProgramCyclesTablePaymentModule = ({
await finishMutation({ programCycleId: decodedProgramCycleId });
showMessage(t('Programme Cycle Finished'));
} catch (e) {
e.data?.forEach((message: string) => showMessage(message));
showMessage(e?.message);
}
};

Expand All @@ -96,7 +96,7 @@ export const ProgramCyclesTablePaymentModule = ({
await reactivateMutation({ programCycleId: decodedProgramCycleId });
showMessage(t('Programme Cycle Reactivated'));
} catch (e) {
e.data?.forEach((message: string) => showMessage(message));
showMessage(e?.message);
}
};

Expand Down

0 comments on commit 08496a4

Please sign in to comment.