Skip to content

Commit

Permalink
fix edit existing post poll
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Feb 21, 2024
1 parent b90c18d commit 812745a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/forum/components/PollForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export default class PollForm extends Component {
</Button>
{this.state.poll.exists && (
<Button className="Button Button--secondary" icon="fas fa-trash-alt" loading={this.state.deleting} onclick={this.delete.bind(this)}>
{app.translator.trans(`${prfx}.delete`)}
{app.translator.trans('fof-polls.forum.modal.delete')}
</Button>
)}
</div>,
Expand Down Expand Up @@ -298,7 +298,7 @@ export default class PollForm extends Component {
} else {
console.error(error);
// Show error alert
app.alerts.show({ type: 'error' }, t(`${prfx}.error`));
app.alerts.show({ type: 'error' }, app.translator.trans('fof-polls.forum.modal.error'));
}
}
}
Expand Down

0 comments on commit 812745a

Please sign in to comment.