Skip to content

Commit

Permalink
bug fixes and changed where toasts appear
Browse files Browse the repository at this point in the history
  • Loading branch information
willi-li-am committed Dec 22, 2023
1 parent 78d2fed commit aee7ca1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/TicketForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})}
Expand Down Expand Up @@ -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',
})}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ const Dashboard = () => {
])

useEffect(() => {
pageRef?.current?.scrollTop = 0
}, [location])
pageRef.current.scrollTop = 0
}, [location.pathname])

const getCurrentTicketContentTable = () => {
switch (currentTicket.type) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/errorToasts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aee7ca1

Please sign in to comment.