Skip to content

Commit

Permalink
Merge pull request #725 from ckpaliwal/issue-6110-2
Browse files Browse the repository at this point in the history
 translation issue fix on sinature approval screen
  • Loading branch information
ckpaliwal authored May 31, 2024
2 parents b3a17f5 + 4e69cfa commit 297da86
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/apollo/src/components/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,13 @@ class Form extends Component {
}

render() {
const translate = this.props.t;
const translate = (value) => {
if(typeof value === 'string') {
return this.props.t(value);
} else {
return value;
}
};
try {
return (
<div className={(this.props.className ? this.props.className + ' ' : '') + 'ibp-form'}
Expand Down

0 comments on commit 297da86

Please sign in to comment.