Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
coerce id into string in comparison
  • Loading branch information
jlangy committed Nov 15, 2023
1 parent fdfa78b commit c328ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/my-dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function MyDashboard() {
<Grid.Col span={4}>
<RealmRightPanel
key={new Date().getTime()}
realm={realms.find((v) => v.id === selectedId) as RealmProfile}
realm={realms.find((v) => String(v.id) === selectedId) as RealmProfile}
currentUser={currentUser}
onUpdate={handleUpdate}
onCancel={handleCancel}
Expand Down

0 comments on commit c328ccb

Please sign in to comment.