Skip to content

Commit

Permalink
fix: resolveValues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smart committed Dec 7, 2022
1 parent 5ad243b commit 66480dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helpers/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ export const resolveValues =
const values = $(
Maybe.fromNullable(
a.data as Discord.MessageComponentDatum,
).flatMapNullable((a) => a.values),
).flatMapNullable((a) => a.values as unknown as string[]),
)
const r = $(resolved(a))
return $(
Maybe.productAll(
values.map((a) => Maybe.fromNullable(f(a.value as any, r))),
values.map((a) => Maybe.fromNullable(f(a as any, r))),
),
)
})
Expand Down

0 comments on commit 66480dc

Please sign in to comment.