mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Ensure from and to plan icons aren't overridden with default icon in Activity Feed
refs: https://github.com/TryGhost/Team/issues/1373 - moved the icon variable for subscription_event to avoid it overriding the if statements
This commit is contained in:
parent
30f7892de8
commit
da9c15f7b5
@ -49,6 +49,8 @@ function getIcon(event) {
|
||||
}
|
||||
|
||||
if (event.type === 'subscription_event') {
|
||||
icon = 'started-subscription';
|
||||
|
||||
if (event.data.from_plan === null) {
|
||||
icon = 'started-subscription';
|
||||
}
|
||||
@ -56,8 +58,6 @@ function getIcon(event) {
|
||||
if (event.data.to_plan === null) {
|
||||
icon = 'canceled-subscription';
|
||||
}
|
||||
|
||||
icon = 'started-subscription';
|
||||
}
|
||||
|
||||
if (event.type === 'email_opened_event') {
|
||||
|
Loading…
Reference in New Issue
Block a user