diff --git a/apps/amo/views.py b/apps/amo/views.py index 1986d3a9..d94a8d74 100644 --- a/apps/amo/views.py +++ b/apps/amo/views.py @@ -69,7 +69,7 @@ def get_addon_details_from_amo(request, pk): revision.package.amo_slug = amo_slug revision.package.save() - if amo_meta['slug']: + if amo_slug: amo_meta['view_on_amo_url'] = revision.package.get_view_on_amo_url() amo_meta['edit_on_amo_url'] = revision.package.get_edit_on_amo_url()