Fixing unban. Fixes #248

This commit is contained in:
Dessalines 2021-04-07 13:01:58 -04:00
parent f9a2f7899f
commit 2c80cea36f

View file

@ -1383,7 +1383,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
} }
handleModBanBothSubmit(i: PostListing, event?: any) { handleModBanBothSubmit(i: PostListing, event?: any) {
event.preventDefault(); if (event) event.preventDefault();
if (i.state.banType == BanType.Community) { if (i.state.banType == BanType.Community) {
// If its an unban, restore all their data // If its an unban, restore all their data