Commit dd7d91c
committed
refactor: guard cta_url fields and drop no-op ternary
Address review: use an if for the quoted context instead of the no-op
ternary, only treat a url button as cta_url when it actually has a url,
and fall back display_text to the url when displayText is absent.1 parent f7303e1 commit dd7d91c
1 file changed
Lines changed: 6 additions & 4 deletions
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | | - | |
| 1178 | + | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | | - | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1185 | 1187 | | |
1186 | | - | |
| 1188 | + | |
1187 | 1189 | | |
1188 | 1190 | | |
1189 | 1191 | | |
| |||
1565 | 1567 | | |
1566 | 1568 | | |
1567 | 1569 | | |
1568 | | - | |
| 1570 | + | |
1569 | 1571 | | |
1570 | 1572 | | |
1571 | 1573 | | |
| |||
0 commit comments