`show_gold_trial?` fails when not logged in

Summary

Some pages that are accessible to non-logged in users like /explore have Gold trial callouts.

The show_gold_trial? helper throws an error when current_user is nil.

Steps to reproduce

Visit /explore while not logged in.

What is the current bug behavior?

Throws an Exception

What is the expected correct behavior?

Page should render normally with the callout hidden

Possible fixes

Check for nil current_user in show_gold_trial? helper

Assignee Loading
Time tracking Loading