Skip to content

Commit 70e075c

Browse files
authored
Forms: fix tooltip in response IP link (#45705)
1 parent bcccd7b commit 70e075c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Forms: fix tooltip in response IP link

projects/packages/forms/src/dashboard/components/response-view/body.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,12 @@ const ResponseViewBody = ( {
478478
<tr>
479479
<th>{ __( 'IP address:', 'jetpack-forms' ) }&nbsp;</th>
480480
<td>
481+
{ response.country_code && (
482+
<span className="jp-forms__inbox-response-meta-country-flag response-country-flag">
483+
{ getCountryFlagEmoji( response.country_code ) }
484+
</span>
485+
) }
481486
<Tooltip text={ __( 'Lookup IP address', 'jetpack-forms' ) }>
482-
{ response.country_code && (
483-
<span className="jp-forms__inbox-response-meta-country-flag response-country-flag">
484-
{ getCountryFlagEmoji( response.country_code ) }
485-
</span>
486-
) }
487487
<ExternalLink href={ getRedirectUrl( 'ip-lookup', { path: response.ip } ) }>
488488
{ response.ip }
489489
</ExternalLink>

0 commit comments

Comments
 (0)