Skip to content

Commit

Permalink
feat: make optional prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshuit914 committed Mar 5, 2024
1 parent be11fec commit 9f8596d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/hmpo-text/macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
hmpoGetOptions(ctx, params, "label")
),
hint: hmpoGetOptions(ctx, params, "hint", true),
prefix: hmpoGetOptions(ctx, params, "prefix", true),
prefix: params.prefix if hmpoGetOptions(ctx, params, "prefix", true) else ""
value: hmpoGetValue(ctx, params),
errorMessage: hmpoGetError(ctx, params),
type: params.type,
Expand Down

0 comments on commit 9f8596d

Please sign in to comment.