diff --git a/src/shared/components/post-listing.tsx b/src/shared/components/post-listing.tsx index d5d734fe..26080627 100644 --- a/src/shared/components/post-listing.tsx +++ b/src/shared/components/post-listing.tsx @@ -1383,7 +1383,7 @@ export class PostListing extends Component { } handleModBanBothSubmit(i: PostListing, event?: any) { - event.preventDefault(); + if (event) event.preventDefault(); if (i.state.banType == BanType.Community) { // If its an unban, restore all their data