@@ -143,12 +143,29 @@ provide(
143
143
144
144
// Message props: These provided values default to useI18n() message text so
145
145
// they must be provided in this format so the default value can be set in the child component.
146
- props .forgotPasswordLinkText && provide (' forgot-password-link-text' , computed ((): string => props .forgotPasswordLinkText ))
147
- props .registerLinkHelpText && provide (' register-link-help-text' , computed ((): string => props .registerLinkHelpText ))
148
- props .registerLinkText && provide (' register-link-text' , computed ((): string => props .registerLinkText ))
149
- props .registerSuccessText && provide (' register-success-text' , computed ((): string => props .registerSuccessText ))
150
- props .loginSsoButtonText && provide (' login-sso-button-text' , computed ((): string => props .loginSsoButtonText ))
151
- props .loginButtonText && provide (' login-button-text' , computed ((): string => props .loginButtonText ))
146
+ if (props .forgotPasswordLinkText ) {
147
+ provide (' forgot-password-link-text' , computed ((): string => props .forgotPasswordLinkText ))
148
+ }
149
+
150
+ if (props .registerLinkHelpText ) {
151
+ provide (' register-link-help-text' , computed ((): string => props .registerLinkHelpText ))
152
+ }
153
+
154
+ if (props .registerLinkText ) {
155
+ provide (' register-link-text' , computed ((): string => props .registerLinkText ))
156
+ }
157
+
158
+ if (props .registerSuccessText ) {
159
+ provide (' register-success-text' , computed ((): string => props .registerSuccessText ))
160
+ }
161
+
162
+ if (props .loginSsoButtonText ) {
163
+ provide (' login-sso-button-text' , computed ((): string => props .loginSsoButtonText ))
164
+ }
165
+
166
+ if (props .loginButtonText ) {
167
+ provide (' login-button-text' , computed ((): string => props .loginButtonText ))
168
+ }
152
169
</script >
153
170
154
171
<style lang="scss">
0 commit comments