diff --git a/frontend/src/components/TicketForms.js b/frontend/src/components/TicketForms.js index 315dded..fbcb1d4 100644 --- a/frontend/src/components/TicketForms.js +++ b/frontend/src/components/TicketForms.js @@ -91,6 +91,7 @@ export const SponsorshipFundForm = ({ register, control }) => { id="funding_allocation" h="1.95rem" pl="24px" + type="number" {...register('funding_allocation', { required: 'This is required', })} @@ -156,6 +157,7 @@ export const FundingItemForm = ({ register, control, sfOptions }) => { id="funding_allocation" h="1.95rem" pl="24px" + type="number" {...register('funding_allocation', { required: 'This is required', })} diff --git a/frontend/src/pages/Dashboard.js b/frontend/src/pages/Dashboard.js index 5d625a8..5db4382 100644 --- a/frontend/src/pages/Dashboard.js +++ b/frontend/src/pages/Dashboard.js @@ -175,8 +175,8 @@ const Dashboard = () => { ]) useEffect(() => { - pageRef?.current?.scrollTop = 0 - }, [location]) + pageRef.current.scrollTop = 0 + }, [location.pathname]) const getCurrentTicketContentTable = () => { switch (currentTicket.type) { diff --git a/frontend/src/utils/errorToasts.js b/frontend/src/utils/errorToasts.js index 7ff05fc..8631af0 100644 --- a/frontend/src/utils/errorToasts.js +++ b/frontend/src/utils/errorToasts.js @@ -5,7 +5,7 @@ export const createErrorMessage = (err) => { duration: 6000, status: 'error', isClosable: true, - position: 'top-left', + position: 'bottom-right', } //custom error messages made in frontend