Skip to content

Commit 89efb4c

Browse files
committedDec 4, 2024··
fix: feeAverage possible to be null (until BE fixes that)
1 parent 3ef8583 commit 89efb4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎solfees-fe/src/components/ui/SimpleCell.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ interface Props {
99
export const SimpleCell = ({ items, slots }: Props) => {
1010
return (
1111
<div className="px-3 text-right">
12-
{items.map((elt, idx) => {
12+
{items.map((rawElt, idx) => {
13+
// this is crutch, until BE fixes null for "feeAverage"
14+
const elt = rawElt ?? 0;
1315
const currentSlot = slots[idx];
1416
const isFilled = currentSlot ? isReal(currentSlot) : false;
1517

0 commit comments

Comments
 (0)
Please sign in to comment.