1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 15:05:22 +02:00

fix: Correcting some issues from merging master

This commit is contained in:
Cameron Roudebush 2025-05-17 11:43:40 -04:00
parent 676c609725
commit bf4ee058ec
2 changed files with 3 additions and 13 deletions

View file

@ -49,7 +49,6 @@ class SimpleFinAccount < ApplicationRecord
accountable: TYPE_MAPPING[sf_account_data["type"]].new,
subtype: sf_account_data["subtype"],
simple_fin_account: sfa, # Explicitly associate back
last_synced_at: Time.current, # Mark as synced upon creation
# Set cash_balance similar to how Account.create_and_sync might
cash_balance: sfa.available_balance
)

View file

@ -28,7 +28,7 @@
<% end %>
<div class="flex items-center gap-1 ml-auto">
<% if Rails.env.development? %>
<% if Rails.env.development? && account.plaid_account %>
<%= icon(
"refresh-cw",
as_button: true,
@ -39,7 +39,7 @@
title: "Refresh all SimpleFIN accounts"
) %>
<% end %>
<% elsif account.simple_fin_account_id.present? %>
<% if account.simple_fin_account_id.present? %>
<%= image_tag "simple-fin-logo.svg", class: "h-6 w-auto", title: "Connected via SimpleFIN. This account will auto refresh." %>
<%= render "accounts/account_error", account: account, link_to_path: "https://beta-bridge.simplefin.org/my-account", given_title: "This account has issues in SimpleFIN bridge. Update it and then re-sync.", target: :_blank %>
<%# Re sync button. Will sync all SimpleFIN accounts %>
@ -51,15 +51,6 @@
disabled: account.syncing?,
frame: :_top
) %>
<% else %>
<%= icon(
"refresh-cw",
as_button: true,
size: "sm",
href: sync_account_path(account),
disabled: account.syncing?,
frame: :_top
) %>
<% end %>
<%= render "accounts/show/menu", account: account %>