Skip to content

Commit 92f7638

Browse files
committed
#1583 updated comments
1 parent efc832a commit 92f7638

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/frontend/src/pages/FinancePage/FinanceComponents/RefundModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ const schema = yup.object().shape({
3030
interface RefundModalProps {
3131
showModal: boolean;
3232
handleClose: () => void;
33-
mutateAsync: (data: any) => void; // if you can figure out how to change this without raising type errors, be my guest
33+
mutateAsync: (data: any) => void; // if anyone can figure out how to change this without raising type errors, be my guest
3434
isLoading: boolean;
3535
defaultValues?: RefundModalInputs;
3636
title: string;
3737
}
3838

3939
export interface RefundModalInputs {
4040
refundId?: string;
41-
refundAmount: string; // this allows us to display default value with 2 decimal places
41+
refundAmount: string; // this allows us to display default value with 2 decimal places - the type is enforced and casted via the input field and form schema
4242
dateReceived: Date;
4343
}
4444

0 commit comments

Comments
 (0)