fix bug with opening receipts caused app to crash after authentication