Fix action link alert from showing up when it wasn't supposed to
Extracted action link alert logic to function
Merge pull request #1032 from stellar/action-link-alert-fix-1031

Fix action link alert from showing up when it wasn't supposed to