admin08077 commited on
Commit
c507e6d
·
verified ·
1 Parent(s): 3c43d55

Update views/VirtualAccounts.tsx

Browse files
Files changed (1) hide show
  1. views/VirtualAccounts.tsx +5 -3
views/VirtualAccounts.tsx CHANGED
@@ -1,3 +1,4 @@
 
1
  import React, { useState, useMemo } from 'react';
2
  import {
3
  Network,
@@ -146,7 +147,8 @@ const VirtualAccounts: React.FC = () => {
146
  'gemini-3-flash-preview',
147
  "Generate a professional 2-sentence summary for a financial reconciliation process. Mention 99.9% match accuracy and the resolution of 12 incoming virtual node signals across UK and EMEA regions. Tone: Technical and secure."
148
  );
149
- setReconcileReport(response.candidates?.[0]?.content?.parts?.[0]?.text);
 
150
  } catch (err) {
151
  setReconcileReport("Neural reconciliation complete. Signal integrity verified at 99.9%. All ledger entries matched with zero drift.");
152
  } finally {
@@ -423,7 +425,7 @@ const VirtualAccounts: React.FC = () => {
423
  {/* Reconciler Modal */}
424
  {isReconcilerOpen && (
425
  <div className="fixed inset-0 z-[100] flex items-center justify-center p-6 backdrop-blur-sm bg-black/60">
426
- <div className="bg-zinc-950 border border-zinc-900 w-full max-w-2xl rounded-[3rem] p-10 shadow-2xl animate-in slide-in-from-bottom-6">
427
  <div className="flex justify-between items-start mb-10">
428
  <div className="flex items-center gap-4">
429
  <div className="w-14 h-14 bg-emerald-500/10 text-emerald-500 rounded-2xl flex items-center justify-center">
@@ -502,4 +504,4 @@ const VirtualAccounts: React.FC = () => {
502
  );
503
  };
504
 
505
- export default VirtualAccounts;
 
1
+
2
  import React, { useState, useMemo } from 'react';
3
  import {
4
  Network,
 
147
  'gemini-3-flash-preview',
148
  "Generate a professional 2-sentence summary for a financial reconciliation process. Mention 99.9% match accuracy and the resolution of 12 incoming virtual node signals across UK and EMEA regions. Tone: Technical and secure."
149
  );
150
+ // Fix: Access .text helper directly from the SDK response object
151
+ setReconcileReport(response.text);
152
  } catch (err) {
153
  setReconcileReport("Neural reconciliation complete. Signal integrity verified at 99.9%. All ledger entries matched with zero drift.");
154
  } finally {
 
425
  {/* Reconciler Modal */}
426
  {isReconcilerOpen && (
427
  <div className="fixed inset-0 z-[100] flex items-center justify-center p-6 backdrop-blur-sm bg-black/60">
428
+ <div className="bg-zinc-950 border border-zinc-900 w-full max-w-lg rounded-[3rem] p-10 shadow-2xl animate-in slide-in-from-bottom-6">
429
  <div className="flex justify-between items-start mb-10">
430
  <div className="flex items-center gap-4">
431
  <div className="w-14 h-14 bg-emerald-500/10 text-emerald-500 rounded-2xl flex items-center justify-center">
 
504
  );
505
  };
506
 
507
+ export default VirtualAccounts;