Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const getColumns = (hyperdrive: Hyperdrive) => [
if (filterValue === "All") {
return true;
}
if (filterValue === "Long") {
if (filterValue === "Longs") {
return ["Open Long", "Close Long"].includes(type);
}
if (filterValue === "Short") {
if (filterValue === "Shorts") {
return ["Open Short", "Close Short"].includes(type);
}
if (filterValue === "LP") {
Expand Down Expand Up @@ -131,7 +131,7 @@ export function TransactionTable({
</div>
{header.column.getCanFilter() ? (
<div className="daisy-tabs-lg">
{["All", "Long", "Short", "LP"].map((filter) => (
{["All", "Longs", "Shorts", "LP"].map((filter) => (
<a
key={filter}
className={`${
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function PositionTabs({
},
)}
>
Long
Longs
</button>
<button
onClick={() => onTabClick("Shorts")}
Expand Down