actualbudget / actualbudget/actual

[Bug]: Calendar widget to Transaction Calendar crashes on mobile

Open
#7,108 2 comments 0 reactions 0 assignees View on GitHub
good first issue reports user interface
Dominant language
TypeScript
Stars
28.7k
Forks
3k
Avg merge
2d 11h
Merged PRs (30d)
65

Description

### What happened?

I was trying to view the Transaction Calendar on my mobile device (Brave) by clicking on the default "Transaction Calendar" widget and experienced a front end crash. This works correctly on my desktop browser (Firefox). I did change the default widget to not include transfers yesterday, but the behavior is unchanged after reverting this change to the widget.

This results in the following front-end error (domain redacted)
```
Error: useDisplayPayee must be used within a DisplayPayeeContextProvider.
at VQt (https://domain.com/static/js/index.B5BQKKmE.js:227:84922)
at At (https://domain.com/static/js/TransactionList.BZNGq6qU.chunk.js:1:26244)
at C_ (https://domain.com/static/js/index.B5BQKKmE.js:9:49009)
at V_ (https://domain.com/static/js/index.B5BQKKmE.js:9:71991)
at lG (https://domain.com/static/js/index.B5BQKKmE.js:9:82524)
at LG (https://domain.com/static/js/index.B5BQKKmE.js:9:118654)
at zAe (https://domain.com/static/js/index.B5BQKKmE.js:9:117680)
at hR (https://domain.com/static/js/index.B5BQKKmE.js:9:117506)
at NG (https://domain.com/static/js/index.B5BQKKmE.js:9:114248)
at QG (https://domain.com/static/js/index.B5BQKKmE.js:9:126268)
```

I speculate this is a duplicate of https://github.com/actualbudget/actual/issues/7098, but that issue does not have enough information to say whether it's the same error and don't want to conflate two issues if not.

I do not observe this behavior with the other default widgets, probably because they do not load and show the transactions.

### How can we reproduce the issue?

1. Open widgets view
2. Tap on Transaction Calendar
3. See the Transaction Calendar page render briefly (around 0.25-0.5 seconds before crashing)
4. Observe "Fatal Error" (so far I have only been able to reproduce this using Brave browser on mobile)

### Where are you hosting Actual?

Docker

### What browsers are you seeing the problem on?

Other - Brave

### Operating System

Mobile Device - Android

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.