Skip to content

Commit

Permalink
fix useTranslation that was badly done
Browse files Browse the repository at this point in the history
  • Loading branch information
Roukii committed Jul 31, 2023
1 parent 9ffca24 commit 840ae7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-builder/src/services/editor/operators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const useEditorOperators = EditorOperatorsContext.useValue;
* cf useGetOperatorLabel() in packages/app-builder/src/components/Scenario/Formula/Operators/Math.tsx
*/
export function useGetOperatorName() {
const { t } = useTranslation('scenarios');
const { t } = useTranslation(['scenarios']);

return useCallback((operatorName: string) => {
if (['+', '-', '<', '=', '>'].includes(operatorName)) return operatorName;
Expand Down

0 comments on commit 840ae7f

Please sign in to comment.