Skip to content

Commit

Permalink
fix: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HrithikSampson committed Sep 21, 2024
1 parent 317707c commit e477202
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/context/donate.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const DonateProvider: FC<IProviderProps> = ({ children, project }) => {
ISelectTokenWithBalance | undefined
>();
const isModalStatusChecked = useRef<
Map<DonateModalPriorityValues, Boolean>
Map<DonateModalPriorityValues, boolean>
>(new Map());
const [highestModalPriorityUnchecked, setHighestModalPriorityUnchecked] =
useState<DonateModalPriorityValues | 'All Checked'>(
Expand Down Expand Up @@ -154,7 +154,7 @@ export const DonateProvider: FC<IProviderProps> = ({ children, project }) => {
let highestModalStatusUnchecked =
DonateModalPriorityValues.None;
let isAllChecked = true;
const modals = Object.values(DonateModalPriorityValues).filter(
const modals: DonateModalPriorityValues[] = Object.values(DonateModalPriorityValues).filter(

Check failure on line 157 in src/context/donate.context.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `DonateModalPriorityValues).filter(⏎↹↹↹↹↹modal·=>·typeof·modal·!==·'string',⏎↹↹↹↹` with `⏎↹↹↹↹↹DonateModalPriorityValues,⏎↹↹↹↹).filter(modal·=>·typeof·modal·!==·'string'`
modal => typeof modal !== 'string',
);
for (const modalStatus of modals) {
Expand All @@ -163,9 +163,7 @@ export const DonateProvider: FC<IProviderProps> = ({ children, project }) => {
}
isAllChecked =
isAllChecked &&
isModalStatusChecked.current.get(modalStatus)
? true
: false;
!!isModalStatusChecked.current.get(modalStatus);
}
setHighestModalPriorityUnchecked(
isAllChecked ? 'All Checked' : highestModalStatusUnchecked,
Expand Down

0 comments on commit e477202

Please sign in to comment.