Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(bridge-ui-v2): remove redundant conditions #15098

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,8 @@ enum LayerType {
const _formatObjectToTsLiteral = (obj: ChainConfigMap): string => {
const formatValue = (value: ChainConfig): string => {
if (typeof value === 'string') {
if (typeof value === 'string') {
if (Object.values(LayerType).includes(value as LayerType)) {
return `LayerType.${value}`; // This line is using LayerType as an enum, but it is now a type
}
return `"${value}"`;
if (Object.values(LayerType).includes(value as LayerType)) {
return `LayerType.${value}`; // This line is using LayerType as an enum, but it is now a type
}
return `"${value}"`;
}
Expand Down
Loading