mirror of
https://github.com/gosticks/web.git
synced 2026-10-05 14:16:57 +00:00
Fix action button to use new status row
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -411,7 +411,7 @@ const columns = t => [
|
||||
filterable: false,
|
||||
Cell: data => {
|
||||
// Blocked, but can whitelist
|
||||
if ([1, 4, 5].includes(data.row.status.code)) {
|
||||
if ([1, 4, 5].includes(data.row.status)) {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
@@ -425,7 +425,7 @@ const columns = t => [
|
||||
|
||||
// Not explicitly blocked (or is whitelisted), but could be blocked.
|
||||
// This includes externally blocked.
|
||||
if ([2, 3, 6].includes(data.row.status.code))
|
||||
if ([2, 3, 6].includes(data.row.status))
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user