Skip to content

Commit

Permalink
fix: amount param
Browse files Browse the repository at this point in the history
  • Loading branch information
djabarovgeorge committed Dec 26, 2024
1 parent 2c0dfe2 commit 106ff08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function sanitizeDigest(controlValues: DigestControlSchemaType) {
function sanitizeDelay(controlValues: DelayControlType) {
const mappedValues: DelayControlType = {
// Cast to trigger Ajv validation errors - possible undefined
...(parseAmount(controlValues) as { amount?: number }), // TODO FIX THIS - should be controlValues.amount
...(parseAmount(controlValues.amount) as { amount?: number }),
type: controlValues.type,
unit: controlValues.unit,
skip: controlValues.skip || undefined,
Expand Down

0 comments on commit 106ff08

Please sign in to comment.