Skip to content

Commit

Permalink
fix: remove unneeded call to localize
Browse files Browse the repository at this point in the history
The controlText function was being called with this.localize(text),
which resulted in redundant localization.
  • Loading branch information
jboix committed Jul 12, 2024
1 parent b94ef4a commit 7c840a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/skip-button/src/skip-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class SkipButton extends Button {
const timeInterval = JSON.parse(this.activeInterval.text);
const text = timeInterval.type === 'OPENING_CREDITS' ? 'Skip intro' : 'Skip credits';

this.controlText(this.localize(text));
this.controlText(text);
this.show();
}
}
Expand Down

0 comments on commit 7c840a9

Please sign in to comment.