Skip to content

Commit cbc289f

Browse files
authored
Merge pull request #471 from oceanprotocol/fix-unban-attempts
show correct result for running unban attempts
2 parents 5ec4d59 + 1cc41cf commit cbc289f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/components/table/columns.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@ function getEligibleCheckbox(eligible = false, banned = false, eligibilityCauseS
6161
}
6262
}
6363

64-
function getUnbanAttemptResult(result: string) {
64+
function getUnbanAttemptResult(result: any) {
65+
if (result === null || result === undefined || result === '') {
66+
return (
67+
<>
68+
<ErrorOutlineOutlinedIcon style={{ fill: 'var(--warning-darker)' }} />
69+
<span>In progress</span>
70+
</>
71+
);
72+
}
6573
switch (result) {
6674
case 'Pending':
6775
return (

0 commit comments

Comments
 (0)