fix(console): save button text for Verify OTP Email message text

The Console did not send the button text when saving the Verify OTP
Email message text, so any custom value was dropped and the default
"Authenticate" was used. Set it in both the organization and the
instance default request builders, like for the other email message
types.

Closes #12799
This commit is contained in:
2026-09-23 09:09:14 +03:00
parent 0a08e7269a
commit 5ddee5081e
@@ -167,6 +167,7 @@ const REQUESTMAP = {
getDefault: new GetDefaultVerifyEmailOTPMessageTextRequest(),
setFcn: (map: Partial<MessageCustomText.AsObject>): SetCustomVerifyEmailOTPMessageTextRequest => {
const req = new SetCustomVerifyEmailOTPMessageTextRequest();
req.setButtonText(map.buttonText ?? '');
req.setFooterText(map.footerText ?? '');
req.setGreeting(map.greeting ?? '');
req.setPreHeader(map.preHeader ?? '');
@@ -332,6 +333,7 @@ const REQUESTMAP = {
set: new SetDefaultVerifyEmailOTPMessageTextRequest(),
setFcn: (map: Partial<MessageCustomText.AsObject>): SetDefaultVerifyEmailOTPMessageTextRequest => {
const req = new SetDefaultVerifyEmailOTPMessageTextRequest();
req.setButtonText(map.buttonText ?? '');
req.setFooterText(map.footerText ?? '');
req.setGreeting(map.greeting ?? '');
req.setPreHeader(map.preHeader ?? '');