Fix ZeroDivisionError #557

Merged
JoshAntBrown merged 1 commits from fix/divide-by-zero-sum-error into main 2024-03-21 01:14:08 +08:00
JoshAntBrown commented 2024-03-21 00:44:57 +08:00 (Migrated from github.com)

It's been a little while since I've had time to check in on this project, I pulled the latest changes and ran the migration and ran into a ZeroDivisionError.

I didn't have any liabilities set so the sum was equal to 0.

This change fixes the error so that page can render:
Screenshot 2024-03-20 at 16 44 14

It's been a little while since I've had time to check in on this project, I pulled the latest changes and ran the migration and ran into a ZeroDivisionError. I didn't have any liabilities set so the sum was equal to 0. This change fixes the error so that page can render: ![Screenshot 2024-03-20 at 16 44 14](https://github.com/maybe-finance/maybe/assets/1793797/4fb0e589-eb97-477e-ba31-e9a721144fda)
zachgoll commented 2024-03-21 01:13:11 +08:00 (Migrated from github.com)

@JoshAntBrown thanks for the fix, I'll go ahead and merge this in to get things working and I opened up #558 to map out a long-term solution. If nobody grabs that, I'll circle back to it next week after I'm done with multi-currency stuff.

@JoshAntBrown thanks for the fix, I'll go ahead and merge this in to get things working and I opened up #558 to map out a long-term solution. If nobody grabs that, I'll circle back to it next week after I'm done with multi-currency stuff.
Sign in to join this conversation.