Do not show enum metadata which is not set
The exercise metadata component is only rendered when it gets a value which is not null and has a length of at least one (either string or array). If it gets a value which is translated before it is being passed, the result will be something of the form "translation-not-found[...]", which has a length of at least one, so it is rendered. To prevent this, check if a value is set before translating it.
parent
acd90d06
Please register or sign in to comment