Skip to content

Commit

Permalink
fix(Translator): fix popover button (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino authored Aug 21, 2024
1 parent eb3f020 commit 5bccffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Translator/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const start = async (): Promise<void> => {
injector.utils.addPopoverButton((message) => ({
icon: originalCache.has(message.id) ? TranslateOffIcon : TranslateIcon,
label: originalCache.has(message.id) ? 'Untranslate' : 'Translate',
onClick: (_, message): void =>
onClick: (): void =>
originalCache.has(message.id)
? untranslateMessage(message.id)
: void translateMessage(message),
Expand Down

0 comments on commit 5bccffd

Please sign in to comment.