Skip to content

Commit

Permalink
Update app/components/Approvals/Snaps/SnapUIRenderer/utils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Frederik Bolding <[email protected]>
  • Loading branch information
Daniel-Cross and FrederikBolding authored Jan 17, 2025
1 parent 590a82a commit c522d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/Approvals/Snaps/SnapUIRenderer/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const mapToTemplate = (params: MapToTemplateParams): UIComponent => {
const { type, key } = params.element;
const elementKey = key ?? generateKey(params.map, params.element);

if (!(type in COMPONENT_MAPPING)) {
if (!hasProperty(COMPONENT_MAPPING, type)) {

Check failure on line 92 in app/components/Approvals/Snaps/SnapUIRenderer/utils.ts

View workflow job for this annotation

GitHub Actions / scripts (lint:tsc)

Cannot find name 'hasProperty'.
throw new Error(`Unknown component type: ${type}`);
}

Expand Down

0 comments on commit c522d51

Please sign in to comment.