Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno committed Mar 24, 2024
1 parent 290219e commit 4bfb983
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ const MyApp = (props) => {
const apolloClient = getApolloClient(props.pageProps[APOLLO_STATE_PROP_NAME]);
const locale = useCurrentLanguage();

const setCurrentModal = (modalId: string, props?: object) => {
const setCurrentModal = <T extends ModalID>(
modalId: T,
props?: ModalProps[T],
) => {
if (modalId !== null) {
va.track("open-modal", {
modalId,
Expand Down

0 comments on commit 4bfb983

Please sign in to comment.