Skip to content

@swapped/connect-sdk / core / getAmountValidationMessage

Function: getAmountValidationMessage()

getAmountValidationMessage(code, metadata): string

Defined in: src/modules/amount-input/amount-input.utils.ts:108

Build the English default message for an amount validation code. Consumers can use this as a fallback next to their own i18n.

Parameters

code

AmountValidationCode

metadata

AmountValidationMetadata

Returns

string