Skip to content

Commit

Permalink
feat: added RWA doc name fix for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
gpuente committed Feb 21, 2024
1 parent d4ab8f8 commit 05dfd07
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pages/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ import {
import { exportFile } from 'src/utils';
import { v4 as uuid } from 'uuid';

const getDocumentModelName = (name: string) => {
if (name === 'RealWorldAssets') {
return 'RWA Portfolio';
}

return name;
};

const Content = () => {
const { items } = useItemsContext();
const [selectedPath, setSelectedPath] = useSelectedPath();
Expand Down Expand Up @@ -222,7 +230,9 @@ const Content = () => {
onClick={() => createDocument(doc)}
>
<span className="text-sm">
{doc.documentModel.name}
{getDocumentModelName(
doc.documentModel.name,
)}
</span>
</Button>
))}
Expand Down

0 comments on commit 05dfd07

Please sign in to comment.