Skip to content

Commit

Permalink
fix typing in VenueEntrancePage
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdevalias committed Apr 13, 2021
1 parent 9f7cffa commit 120dd22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/VenueEntrancePage/VenueEntrancePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { showZendeskWidget } from "utils/zendesk";
export const VenueEntrancePage: React.FunctionComponent<{}> = () => {
const { user, profile } = useUser();
const history = useHistory();
const { step } = useParams();
const { step } = useParams<{ step?: string }>();
const venueId = useVenueId();
useConnectCurrentVenue();
const venue = useSelector(currentVenueSelectorData);
Expand All @@ -32,6 +32,7 @@ export const VenueEntrancePage: React.FunctionComponent<{}> = () => {
}

if (
step === undefined ||
!(parseInt(step) > 0) ||
!venue.entrance ||
!venue.entrance.length ||
Expand Down

0 comments on commit 120dd22

Please sign in to comment.