mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 06:55:21 +02:00
fix: Correcting some issues from merging master
This commit is contained in:
parent
676c609725
commit
bf4ee058ec
2 changed files with 3 additions and 13 deletions
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
|
@ -38,8 +38,8 @@
|
|||
frame: :_top,
|
||||
title: "Refresh all SimpleFIN accounts"
|
||||
) %>
|
||||
<% end %>
|
||||
<% elsif account.simple_fin_account_id.present? %>
|
||||
<% end %>
|
||||
<% 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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue