Skip to content

Commit

Permalink
fix: 🐛 import function
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienBounoir committed Mar 7, 2024
1 parent 29a0bc3 commit af473ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dashboardElements/moderation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const Moderation = ({ guildId, configuration, updateConfiguration, confAc
formattedInfractions.push(
<div className="infractionContainer">
<div className="automatedInfraction">
<span>{transformToHtml(t("moderation." + (["WARN", "MUTE", "BAN"].include(automatedInfractions[i].action) ? "infractionDetailsWithoutActionTime" : "infractionDetails")).replace("{{INFRACTION}}", automatedInfractions[i].target_count).replace("{{INFRACTION_TEXT}}", automatedInfractions[i].target_count > 1 ? t("moderation.infractions") : t("moderation.infraction")).replace("{{TIME}}", formatTime(automatedInfractions[i].target_time)).replace("{{ACTION}}", automatedInfractions[i].action).replace("{{ACTION_TIME}}", formatTime(automatedInfractions[i].action_time)))}</span>
<span>{transformToHtml(t("moderation." + (["WARN", "MUTE", "BAN"].includes(automatedInfractions[i].action) ? "infractionDetailsWithoutActionTime" : "infractionDetails")).replace("{{INFRACTION}}", automatedInfractions[i].target_count).replace("{{INFRACTION_TEXT}}", automatedInfractions[i].target_count > 1 ? t("moderation.infractions") : t("moderation.infraction")).replace("{{TIME}}", formatTime(automatedInfractions[i].target_time)).replace("{{ACTION}}", automatedInfractions[i].action).replace("{{ACTION_TIME}}", formatTime(automatedInfractions[i].action_time)))}</span>
<button
onClick={() => {
let newConfig = JSON.parse(JSON.stringify(configuration.autoInfractions))
Expand Down

0 comments on commit af473ab

Please sign in to comment.