mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-18 18:02:36 +01:00
this didnt happen shh
This commit is contained in:
parent
1c8c404d3e
commit
9b8f4e514e
@ -58,7 +58,10 @@ export const ModToolsUserModActionView: FC<ModToolsUserModActionViewProps> = pro
|
||||
|
||||
const sendDefaultSanction = () =>
|
||||
{
|
||||
let errorMessage: string = null;
|
||||
const category = topics[selectedTopic];
|
||||
if(selectedTopic === -1) errorMessage = 'You must select a CFH topic';
|
||||
if(errorMessage) return sendAlert(errorMessage);
|
||||
const messageOrDefault = (message.trim().length === 0) ? LocalizeText(`help.cfh.topic.${category.id}`) : message;
|
||||
SendMessageComposer(new DefaultSanctionMessageComposer(user.userId, selectedTopic, messageOrDefault));
|
||||
onCloseClick();
|
||||
|
Loading…
x
Reference in New Issue
Block a user